From 6a969d2cd22f1c4eab823fa976c9ff2694fef3dd Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Mon, 29 Apr 2019 19:50:53 +0200 Subject: [PATCH] Revert "use new style xterm events" This reverts commit d42e070e6c98bd57e4c71e1167a2f993a90ee5fd. --- terminus-terminal/src/frontends/xtermFrontend.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/terminus-terminal/src/frontends/xtermFrontend.ts b/terminus-terminal/src/frontends/xtermFrontend.ts index 94635fe7..684da30f 100644 --- a/terminus-terminal/src/frontends/xtermFrontend.ts +++ b/terminus-terminal/src/frontends/xtermFrontend.ts @@ -26,16 +26,16 @@ export class XTermFrontend extends Frontend { }) this.xtermCore = (this.xterm as any)._core - this.xterm.onData(data => { + this.xterm.on('data', data => { this.input.next(data) }) - this.xterm.onResize(({ cols, rows }) => { + this.xterm.on('resize', ({ cols, rows }) => { this.resize.next({ rows, columns: cols }) }) - this.xterm.onTitleChange(title => { + this.xterm.on('title', title => { this.title.next(title) }) - this.xterm.onSelectionChange(() => { + this.xterm.on('selection', () => { if (this.copyOnSelect) { this.copySelection() }