diff --git a/tabby-core/src/api/profileProvider.ts b/tabby-core/src/api/profileProvider.ts index 31fa1f75..37b11fb1 100644 --- a/tabby-core/src/api/profileProvider.ts +++ b/tabby-core/src/api/profileProvider.ts @@ -22,6 +22,7 @@ export interface Profile { } export interface ConnectableProfile extends Profile { + clearServiceMessagesOnConnect: boolean } export type PartialProfile = Omit { reuseSession: true, input: { backspace: 'backspace' }, }, + clearServiceMessagesOnConnect: true, } constructor ( diff --git a/tabby-telnet/src/profiles.ts b/tabby-telnet/src/profiles.ts index a88ea0a2..0c247e8a 100644 --- a/tabby-telnet/src/profiles.ts +++ b/tabby-telnet/src/profiles.ts @@ -21,6 +21,7 @@ export class TelnetProfilesService extends ConnectableProfileProvider { this.reconnectOffered = false this.isDisconnectedByHand = false + if (this.profile.clearServiceMessagesOnConnect) { + this.frontend?.clear() + } } /**