diff --git a/terminus-terminal/src/api/baseTerminalTab.component.ts b/terminus-terminal/src/api/baseTerminalTab.component.ts index a31b938f..66779659 100644 --- a/terminus-terminal/src/api/baseTerminalTab.component.ts +++ b/terminus-terminal/src/api/baseTerminalTab.component.ts @@ -90,6 +90,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit protected logger: Logger protected output = new Subject() + protected sessionChanged = new Subject() private sessionCloseSubscription: Subscription private hotkeysSubscription: Subscription private bellPlayer: HTMLAudioElement @@ -122,6 +123,8 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit get frontendReady$ (): Observable { return this.frontendReady } + get sessionChanged$ (): Observable { return this.sessionChanged } + constructor (protected injector: Injector) { super() @@ -581,6 +584,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit this.detachSessionHandlers() this.session = null } + this.sessionChanged.next(session) } protected attachSessionHandler (subscription: Subscription): void {