Update to send proper term size for pty
This commit is contained in:
parent
ca45656c11
commit
e5ea457db0
|
@ -164,10 +164,18 @@ exports.getModule = class ExodusModule extends MenuModule {
|
||||||
|
|
||||||
const sshClient = new SSHClient();
|
const sshClient = new SSHClient();
|
||||||
|
|
||||||
const shellOptions = {
|
const window = {
|
||||||
|
rows : self.client.term.termHeight,
|
||||||
|
cols : self.client.term.termWidth,
|
||||||
|
width : 0,
|
||||||
|
height : 0,
|
||||||
|
term : 'vt100', // Want to pass |self.client.term.termClient| here, but we end up getting hung up on :(
|
||||||
|
};
|
||||||
|
|
||||||
|
const options = {
|
||||||
env : {
|
env : {
|
||||||
exodus : ticket,
|
exodus : ticket,
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
sshClient.on('ready', () => {
|
sshClient.on('ready', () => {
|
||||||
|
@ -177,8 +185,7 @@ exports.getModule = class ExodusModule extends MenuModule {
|
||||||
return sshClient.end();
|
return sshClient.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
sshClient.shell(shellOptions, (err, stream) => {
|
sshClient.shell(window, options, (err, stream) => {
|
||||||
|
|
||||||
pipedStream = stream; // :TODO: ewwwwwwwww hack
|
pipedStream = stream; // :TODO: ewwwwwwwww hack
|
||||||
self.client.term.output.pipe(stream);
|
self.client.term.output.pipe(stream);
|
||||||
|
|
||||||
|
@ -190,6 +197,10 @@ exports.getModule = class ExodusModule extends MenuModule {
|
||||||
restorePipe();
|
restorePipe();
|
||||||
return sshClient.end();
|
return sshClient.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
stream.on('error', err => {
|
||||||
|
Log.warn( { error : err.message }, 'Exodus SSH client stream error');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue