fixed #194 - added hotkeys to scroll the terminal

This commit is contained in:
Eugene Pankov
2022-07-30 00:05:44 +02:00
parent 5d383eea04
commit c43137b8f6
5 changed files with 44 additions and 1 deletions

View File

@@ -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

View File

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