Revert "use new style xterm events"

This reverts commit d42e070e6c.
This commit is contained in:
Eugene Pankov 2019-04-29 19:50:53 +02:00
parent b6cbd42d8b
commit 6a969d2cd2

View File

@ -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()
}