mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added xterm terminal and fixed device link.
This commit is contained in:
parent
b6ff01775f
commit
2f37cd882e
10 changed files with 1444 additions and 990 deletions
|
@ -1214,8 +1214,9 @@ function createMeshCore(agent) {
|
|||
var shell = bash || sh;
|
||||
|
||||
var options = { uid: (this.httprequest.protocol == 8) ? require('user-sessions').consoleUid() : null, env: { HISTCONTROL: 'ignoreboth', TERM: 'xterm' } };
|
||||
var setupcommands = ' alias ls=\'ls --color=auto\'\n';
|
||||
if (shell == sh) setupcommands += 'stty erase ^H\n'
|
||||
var setupcommands = 'alias ls=\'ls --color=auto\'\n';
|
||||
if (shell == sh) setupcommands += 'stty erase ^H\n';
|
||||
setupcommands += 'clear\n';
|
||||
|
||||
if (script && shell && process.platform == 'linux') {
|
||||
this.httprequest.process = childProcess.execFile(script, ['script', '--return', '--quiet', '-c', '"' + shell + '"', '/dev/null'], options); // Start as active user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue