moved terminal selection to config.json

Defaulting to xterm-color for better support across *nixs
This commit is contained in:
billchurch 2017-03-23 11:23:59 -04:00
parent e45ded7aad
commit a9d7959228
2 changed files with 4 additions and 3 deletions

View file

@ -9,7 +9,8 @@
},
"ssh": {
"host": null,
"port": 22
"port": 22,
"term": "xterm-color",
},
"header": {
"text": "My Header",
@ -18,4 +19,4 @@
"options": {
"challengeButton": true
}
}
}

View file

@ -76,7 +76,7 @@ io.on('connection', function(socket) {
socket.emit('status', 'SSH CONNECTION ESTABLISHED');
socket.emit('statusBackground', 'green');
socket.emit('allowreplay', config.options.allowreplay);
conn.shell( { term: 'xterm-256color' }, function(err, stream) {
conn.shell( { term: config.ssh.term }, function(err, stream) {
if (err) {
console.log (err.message);
myError = myError + err.message;