From 7e253d72ea1061f4ce83e0127f0561a6b71687a0 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Thu, 26 Jul 2018 22:18:50 +0200 Subject: [PATCH] made contentUpdated$ Observable --- .../src/components/terminalTab.component.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/terminus-terminal/src/components/terminalTab.component.ts b/terminus-terminal/src/components/terminalTab.component.ts index afb9b1d8..0fc8140b 100644 --- a/terminus-terminal/src/components/terminalTab.component.ts +++ b/terminus-terminal/src/components/terminalTab.component.ts @@ -34,14 +34,15 @@ export class TerminalTabComponent extends BaseTabComponent { bell$ = new Subject() size: ResizeEvent resize$: Observable - private resize_ = new Subject() input$ = new Subject() output$ = new Subject() - contentUpdated$ = new Subject() + contentUpdated$: Observable alternateScreenActive$ = new BehaviorSubject(false) mouseEvent$ = new Subject() htermVisible = false shell: IShell + private resize_ = new Subject() + private contentUpdated_ = new Subject() private bellPlayer: HTMLAudioElement private io: any private contextMenu: any @@ -300,13 +301,13 @@ export class TerminalTabComponent extends BaseTabComponent { const _insertString = screen.insertString.bind(screen) screen.insertString = (data) => { _insertString(data) - this.contentUpdated$.next() + this.contentUpdated_.next() } const _deleteChars = screen.deleteChars.bind(screen) screen.deleteChars = (count) => { let ret = _deleteChars(count) - this.contentUpdated$.next() + this.contentUpdated_.next() return ret } } @@ -458,7 +459,7 @@ export class TerminalTabComponent extends BaseTabComponent { this.resize_.complete() this.input$.complete() this.output$.complete() - this.contentUpdated$.complete() + this.contentUpdated_.complete() this.alternateScreenActive$.complete() this.mouseEvent$.complete() this.bell$.complete()