mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-21 03:49:57 +00:00
Revert "Revert "use new style xterm events""
This reverts commit 6a969d2cd22f1c4eab823fa976c9ff2694fef3dd.
This commit is contained in:
parent
f547122b41
commit
8f9d6b2be8
@ -26,16 +26,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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user