diff --git a/terminus-serial/src/components/serialTab.component.ts b/terminus-serial/src/components/serialTab.component.ts index 9e2b14dd..ef89f7a1 100644 --- a/terminus-serial/src/components/serialTab.component.ts +++ b/terminus-serial/src/components/serialTab.component.ts @@ -44,6 +44,9 @@ export class SerialTabComponent extends BaseTerminalTabComponent { case 'end': this.sendInput('\x1b[F' ) break + case 'restart-serial-session': + this.reconnect() + break } }) diff --git a/terminus-serial/src/config.ts b/terminus-serial/src/config.ts index 08c6209b..052aa5a3 100644 --- a/terminus-serial/src/config.ts +++ b/terminus-serial/src/config.ts @@ -12,6 +12,7 @@ export class SerialConfigProvider extends ConfigProvider { serial: [ 'Alt-K', ], + 'restart-serial-session': [], }, } diff --git a/terminus-serial/src/hotkeys.ts b/terminus-serial/src/hotkeys.ts index e0ac50ab..46d2c592 100644 --- a/terminus-serial/src/hotkeys.ts +++ b/terminus-serial/src/hotkeys.ts @@ -9,6 +9,10 @@ export class SerialHotkeyProvider extends HotkeyProvider { id: 'serial', name: 'Show Serial connections', }, + { + id: 'restart-serial-session', + name: 'Restart current serial session', + }, ] async provide (): Promise { diff --git a/terminus-ssh/src/config.ts b/terminus-ssh/src/config.ts index 399eb61c..7f1b1724 100644 --- a/terminus-ssh/src/config.ts +++ b/terminus-ssh/src/config.ts @@ -13,6 +13,7 @@ export class SSHConfigProvider extends ConfigProvider { ssh: [ 'Alt-S', ], + 'restart-ssh-session': [], }, } diff --git a/terminus-ssh/src/hotkeys.ts b/terminus-ssh/src/hotkeys.ts index 0ee155f8..16a02c2e 100644 --- a/terminus-ssh/src/hotkeys.ts +++ b/terminus-ssh/src/hotkeys.ts @@ -9,6 +9,10 @@ export class SSHHotkeyProvider extends HotkeyProvider { id: 'ssh', name: 'Show SSH connections', }, + { + id: 'restart-ssh-session', + name: 'Restart current SSH session', + }, ] async provide (): Promise {