From 8cb75e14a2c96ef0be93a553edabf473bdec4d76 Mon Sep 17 00:00:00 2001 From: Clem Date: Sat, 22 Apr 2023 14:36:14 +0200 Subject: [PATCH] Revert "lint" This reverts commit b0973791a8a012dc4ea602265333e916d1e63e74. --- tabby-serial/src/components/serialTab.component.ts | 2 +- tabby-ssh/src/components/sshTab.component.ts | 3 ++- tabby-telnet/src/components/telnetTab.component.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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-')) {