From d42e070e6c98bd57e4c71e1167a2f993a90ee5fd Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Wed, 17 Apr 2019 22:03:20 +0200 Subject: [PATCH] use new style xterm events --- 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 84592421..c2dce4cd 100644 --- a/terminus-terminal/src/frontends/xtermFrontend.ts +++ b/terminus-terminal/src/frontends/xtermFrontend.ts @@ -29,16 +29,16 @@ export class XTermFrontend extends Frontend { }) this.xtermCore = (this.xterm as any)._core - this.xterm.on('data', data => { + this.xterm.onData(data => { this.input.next(data) }) - this.xterm.on('resize', ({ cols, rows }) => { + this.xterm.onResize(({ cols, rows }) => { this.resize.next({ rows, columns: cols }) }) - this.xterm.on('title', title => { + this.xterm.onTitleChange(title => { this.title.next(title) }) - this.xterm.on('selection', () => { + this.xterm.onSelectionChange(() => { if (this.copyOnSelect) { this.copySelection() }