mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-23 08:36:03 +00:00
ssh: fixed newlines in banners/MOTD - fixes #5905
This commit is contained in:
@@ -124,6 +124,7 @@ export class SSHTabComponent extends BaseTerminalTabComponent {
|
||||
}
|
||||
|
||||
this.attachSessionHandler(session.serviceMessage$, msg => {
|
||||
msg = msg.replace(/\n/g, '\r\n ')
|
||||
this.write(`\r${colors.black.bgWhite(' SSH ')} ${msg}\r\n`)
|
||||
})
|
||||
|
||||
@@ -202,6 +203,7 @@ export class SSHTabComponent extends BaseTerminalTabComponent {
|
||||
const session = new SSHShellSession(this.injector, this.sshSession)
|
||||
this.setSession(session)
|
||||
this.attachSessionHandler(session.serviceMessage$, msg => {
|
||||
msg = msg.replace(/\n/g, '\r\n ')
|
||||
this.write(`\r${colors.black.bgWhite(' SSH ')} ${msg}\r\n`)
|
||||
session.resize(this.size.columns, this.size.rows)
|
||||
})
|
||||
|
Reference in New Issue
Block a user