mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-05 14:34:54 +00:00
fixed #194 - added hotkeys to scroll the terminal
This commit is contained in:
@@ -75,6 +75,9 @@ export abstract class Frontend {
|
||||
abstract write (data: string): Promise<void>
|
||||
abstract clear (): void
|
||||
abstract visualBell (): void
|
||||
|
||||
abstract scrollToTop (): void
|
||||
abstract scrollPages (pages: number): void
|
||||
abstract scrollToBottom (): void
|
||||
|
||||
abstract configure (): void
|
||||
|
@@ -328,6 +328,14 @@ export class XTermFrontend extends Frontend {
|
||||
}
|
||||
}
|
||||
|
||||
scrollToTop (): void {
|
||||
this.xterm.scrollToTop()
|
||||
}
|
||||
|
||||
scrollPages (pages: number): void {
|
||||
this.xterm.scrollPages(pages)
|
||||
}
|
||||
|
||||
scrollToBottom (): void {
|
||||
this.xtermCore._scrollToBottom()
|
||||
}
|
||||
|
Reference in New Issue
Block a user