diff --git a/tabby-serial/src/components/serialTab.component.ts b/tabby-serial/src/components/serialTab.component.ts index c7dc6f15..944df11b 100644 --- a/tabby-serial/src/components/serialTab.component.ts +++ b/tabby-serial/src/components/serialTab.component.ts @@ -84,7 +84,7 @@ export class SerialTabComponent extends BaseTerminalTabComponent this.attachSessionHandler(this.session!.destroyed$, () => { if (this.frontend) { // Session was closed abruptly - if (this.config.store.terminal.behaviorOnSessionEnds === 'close') { + if (this.config.store.terminal.behaviorOnSessionEnds == 'close') { // Close the tab this.destroy() } else if (this.config.store.terminal.behaviorOnSessionEnds.startsWith('reconnect-or-')) { diff --git a/tabby-ssh/src/components/sshTab.component.ts b/tabby-ssh/src/components/sshTab.component.ts index 4e681595..14296ad5 100644 --- a/tabby-ssh/src/components/sshTab.component.ts +++ b/tabby-ssh/src/components/sshTab.component.ts @@ -158,9 +158,10 @@ export class SSHTabComponent extends BaseTerminalTabComponent implem const session = this.session! this.attachSessionHandler(session.destroyed$, () => { if (this.frontend) { + this.write('\r\n' + colors.black.bgWhite(' SSH ') + ` ${this.sshSession?.profile.options.host}: session closed\r\n`) - if (this.config.store.terminal.behaviorOnSessionEnds === 'close') { + if (this.config.store.terminal.behaviorOnSessionEnds == 'close') { // Close the tab this.destroy() } else if (this.config.store.terminal.behaviorOnSessionEnds.startsWith('reconnect-or-')) { diff --git a/tabby-telnet/src/components/telnetTab.component.ts b/tabby-telnet/src/components/telnetTab.component.ts index 77b3ceb7..58e4e7fe 100644 --- a/tabby-telnet/src/components/telnetTab.component.ts +++ b/tabby-telnet/src/components/telnetTab.component.ts @@ -48,7 +48,7 @@ export class TelnetTabComponent extends BaseTerminalTabComponent this.attachSessionHandler(session.destroyed$, () => { if (this.frontend) { // Session was closed abruptly - if (this.config.store.terminal.behaviorOnSessionEnds === 'close') { + if (this.config.store.terminal.behaviorOnSessionEnds == 'close') { // Close the tab this.destroy() } else if (this.config.store.terminal.behaviorOnSessionEnds.startsWith('reconnect-or-')) {