moved terminal selection to config.json
Defaulting to xterm-color for better support across *nixs
This commit is contained in:
parent
e45ded7aad
commit
a9d7959228
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
index.js
2
index.js
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue