mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-09 06:20:22 +08:00
use new style xterm events
This commit is contained in:
parent
c5958bc9a0
commit
d42e070e6c
@ -29,16 +29,16 @@ export class XTermFrontend extends Frontend {
|
|||||||
})
|
})
|
||||||
this.xtermCore = (this.xterm as any)._core
|
this.xtermCore = (this.xterm as any)._core
|
||||||
|
|
||||||
this.xterm.on('data', data => {
|
this.xterm.onData(data => {
|
||||||
this.input.next(data)
|
this.input.next(data)
|
||||||
})
|
})
|
||||||
this.xterm.on('resize', ({ cols, rows }) => {
|
this.xterm.onResize(({ cols, rows }) => {
|
||||||
this.resize.next({ rows, columns: cols })
|
this.resize.next({ rows, columns: cols })
|
||||||
})
|
})
|
||||||
this.xterm.on('title', title => {
|
this.xterm.onTitleChange(title => {
|
||||||
this.title.next(title)
|
this.title.next(title)
|
||||||
})
|
})
|
||||||
this.xterm.on('selection', () => {
|
this.xterm.onSelectionChange(() => {
|
||||||
if (this.copyOnSelect) {
|
if (this.copyOnSelect) {
|
||||||
this.copySelection()
|
this.copySelection()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user