XTerm fixes.

This commit is contained in:
Ylian Saint-Hilaire 2020-01-28 15:49:33 -08:00
parent bd319cd6fc
commit cb1f3a4d16
3 changed files with 5 additions and 2 deletions

View File

@ -1203,6 +1203,7 @@ function createMeshCore(agent) {
var bash = fs.existsSync('/bin/bash') ? '/bin/bash' : false;
var sh = fs.existsSync('/bin/sh') ? '/bin/sh' : false;
var script = false;
/*
try {
if (require('linux-gnome-helpers').scriptVersion) {
if (require('linux-gnome-helpers').scriptVersion.major > 2 ||
@ -1211,7 +1212,8 @@ function createMeshCore(agent) {
}
}
} catch (ex) { }
var python = fs.existsSync('/usr/bin/python') ? '/usr/bin/python' : false;
*/
var python = false; //fs.existsSync('/usr/bin/python') ? '/usr/bin/python' : false;
var shell = bash || sh;
var pty = python || script;

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.4.8-d",
"version": "0.4.8-e",
"keywords": [
"Remote Management",
"Intel AMT",

View File

@ -161,6 +161,7 @@
if (resizeTimer) clearTimeout(resizeTimer);
resizeTimer = setTimeout(sendResize, 200);
});
term.setOption('convertEol', true); // Consider \n to be \r\n, this should be taken care of by "termios"
// Setup a terminal tunnel to the agent
tunnel = CreateAgentRedirect(meshserver, CreateRemoteTunnel(tunnelUpdate, options), serverPublicNamePort, authCookie, authRelayCookie, domainUrl);