Skip to content

Commit

Permalink
moved terminal selection to config.json
Browse files Browse the repository at this point in the history
Defaulting to xterm-color for better support across *nixs
  • Loading branch information
billchurch committed Mar 23, 2017
1 parent e45ded7 commit a9d7959
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"ssh": {
"host": null,
"port": 22
"port": 22,
"term": "xterm-color",
},
"header": {
"text": "My Header",
Expand All @@ -18,4 +19,4 @@
"options": {
"challengeButton": true
}
}
}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a9d7959

Please sign in to comment.