1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-23 13:13:49 +03:00

ssh: fixed missing service messages - fixes #5798

This commit is contained in:
Eugene Pankov 2022-02-23 20:51:17 +01:00
parent 555c8c18ee
commit 645531acc0
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
2 changed files with 2 additions and 2 deletions

View File

@ -200,13 +200,12 @@ export class SSHTabComponent extends BaseTerminalTabComponent {
}
const session = new SSHShellSession(this.injector, this.sshSession)
this.setSession(session)
this.attachSessionHandler(session.serviceMessage$, msg => {
this.write(`\r${colors.black.bgWhite(' SSH ')} ${msg}\r\n`)
session.resize(this.size.columns, this.size.rows)
})
this.setSession(session)
await session.start()
this.session?.resize(this.size.columns, this.size.rows)
}

View File

@ -24,6 +24,7 @@ export class SSHShellSession extends BaseSession {
this.ssh = ssh
this.profile = ssh.profile
this.setLoginScriptsOptions(this.profile.options)
this.ssh.serviceMessage$.subscribe(m => this.serviceMessage.next(m))
}
async start (): Promise<void> {