mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-11 15:03:20 -05:00
Fix issues with linux/macos terminal
This commit is contained in:
parent
248d9423fa
commit
fca9b86d62
@ -1240,7 +1240,7 @@ function createMeshCore(agent) {
|
|||||||
var sh = fs.existsSync('/bin/sh') ? '/bin/sh' : false;
|
var sh = fs.existsSync('/bin/sh') ? '/bin/sh' : false;
|
||||||
var login = process.platform == 'linux' ? '/bin/login' : '/usr/bin/login';
|
var login = process.platform == 'linux' ? '/bin/login' : '/usr/bin/login';
|
||||||
|
|
||||||
var env = { HISTCONTROL: 'ignoreboth', TERM: 'xterm' };
|
var env = { HISTCONTROL: 'ignoreboth' };
|
||||||
if (this.httprequest.xoptions)
|
if (this.httprequest.xoptions)
|
||||||
{
|
{
|
||||||
if (this.httprequest.xoptions.rows) { env.LINES = ('' + this.httprequest.xoptions.rows); }
|
if (this.httprequest.xoptions.rows) { env.LINES = ('' + this.httprequest.xoptions.rows); }
|
||||||
|
@ -73,7 +73,7 @@ var CreateAmtRemoteTerminal = function (divid, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
obj.xxStateChange = function (newstate) {
|
obj.xxStateChange = function (newstate) {
|
||||||
//if ((newstate == 3) && (options != null) && (options.xterm == true)) { obj.TermSendKeys(' stty rows ' + obj.height + ' cols ' + obj.width + '\n clear\n'); }
|
if ((newstate == 3) && (options != null) && (options.xterm == true)) { obj.TermSendKeys(' stty rows ' + obj.height + ' cols ' + obj.width + ';clear\n'); }
|
||||||
}
|
}
|
||||||
|
|
||||||
obj.ProcessData = function (str) {
|
obj.ProcessData = function (str) {
|
||||||
|
Loading…
Reference in New Issue
Block a user