Skip to content

Commit

Permalink
fixed #7841 - clear SSH service messages by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jan 27, 2023
1 parent 842636a commit 7491c31
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tabby-ssh/src/components/sshSettingsTab.component.pug
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,12 @@ h3 SSH
(ngModelChange)='config.save()'
)

.form-line
.header
.title(translate) Clear terminal after connection
toggle(
[(ngModel)]='config.store.ssh.clearServiceMessagesOnConnect',
(ngModelChange)='config.save()',
)

.alert.alert-info(translate) SSH connection management is now done through the "Profiles & connections" tab
5 changes: 5 additions & 0 deletions tabby-ssh/src/components/sshTab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ export class SSHTabComponent extends BaseTerminalTabComponent {
})

await session.start()

if (this.config.store.ssh.clearServiceMessagesOnConnect) {
this.frontend?.clear()
}

this.session?.resize(this.size.columns, this.size.rows)
}

Expand Down
1 change: 1 addition & 0 deletions tabby-ssh/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export class SSHConfigProvider extends ConfigProvider {
x11Display: null,
knownHosts: [],
verifyHostKeys: true,
clearServiceMessagesOnConnect: true,
},
hotkeys: {
'restart-ssh-session': [],
Expand Down

0 comments on commit 7491c31

Please sign in to comment.