Fix issues with linux/macos terminal

TotallyNotElite committed Feb 5, 2020 at 20:45 UTC fca9b86d62b11c15cc82d581f40716bfa826abd5
2 files changed +2 -2
agents/meshcore.js
+1 -1
@@ -1240,7 +1240,7 @@ function createMeshCore(agent) {
1240 var sh = fs.existsSync('/bin/sh') ? '/bin/sh' : false;
1241 var login = process.platform == 'linux' ? '/bin/login' : '/usr/bin/login';
1242
1243 - var env = { HISTCONTROL: 'ignoreboth', TERM: 'xterm' };
1243 + var env = { HISTCONTROL: 'ignoreboth' };
1244 if (this.httprequest.xoptions)
1245 {
1246 if (this.httprequest.xoptions.rows) { env.LINES = ('' + this.httprequest.xoptions.rows); }
public/scripts/amt-terminal-0.0.2.js
+1 -1
@@ -73,7 +73,7 @@ var CreateAmtRemoteTerminal = function (divid, options) {
73 }
74
75 obj.xxStateChange = function (newstate) {
76 - //if ((newstate == 3) && (options != null) && (options.xterm == true)) { obj.TermSendKeys(' stty rows ' + obj.height + ' cols ' + obj.width + '\n clear\n'); }
76 + if ((newstate == 3) && (options != null) && (options.xterm == true)) { obj.TermSendKeys(' stty rows ' + obj.height + ' cols ' + obj.width + ';clear\n'); }
77 }
78
79 obj.ProcessData = function (str) {