blessed-telnet: termtype.
This commit is contained in:
parent
d7933adfb0
commit
7e0104ef42
|
@ -33,11 +33,10 @@ var server = telnet.createServer(function(client) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// XXX For when termtype is implemented in node-telnet
|
||||||
client.on('terminal type', function(data) {
|
client.on('terminal type', function(data) {
|
||||||
// https://tools.ietf.org/html/rfc884
|
if (data.command === 'sb' && data.name) {
|
||||||
if (data.command === 'sb' && data.buf[3] === 1) {
|
screen.terminal = data.name;
|
||||||
var TERM = data.buf.slice(4, -2).toString('ascii');
|
|
||||||
screen.terminal = TERM;
|
|
||||||
screen.render();
|
screen.render();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue