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": { "ssh": {
"host": null, "host": null,
"port": 22 "port": 22,
"term": "xterm-color",
}, },
"header": { "header": {
"text": "My Header", "text": "My Header",

View file

@ -76,7 +76,7 @@ io.on('connection', function(socket) {
socket.emit('status', 'SSH CONNECTION ESTABLISHED'); socket.emit('status', 'SSH CONNECTION ESTABLISHED');
socket.emit('statusBackground', 'green'); socket.emit('statusBackground', 'green');
socket.emit('allowreplay', config.options.allowreplay); 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) { if (err) {
console.log (err.message); console.log (err.message);
myError = myError + err.message; myError = myError + err.message;