Full tests for xterm-headless

This commit is contained in:
Daniel Imms
2021-08-12 06:00:55 -07:00
parent df48e9f6d5
commit f8066d6dee
3 changed files with 183 additions and 146 deletions
+28
View File
@@ -620,6 +620,34 @@ declare module 'xterm-headless' {
*/
dispose(): void;
/**
* Scroll the display of the terminal
* @param amount The number of lines to scroll down (negative scroll up).
*/
scrollLines(amount: number): void;
/**
* Scroll the display of the terminal by a number of pages.
* @param pageCount The number of pages to scroll (negative scrolls up).
*/
scrollPages(pageCount: number): void;
/**
* Scrolls the display of the terminal to the top.
*/
scrollToTop(): void;
/**
* Scrolls the display of the terminal to the bottom.
*/
scrollToBottom(): void;
/**
* Scrolls to a line within the buffer.
* @param line The 0-based line index to scroll to.
*/
scrollToLine(line: number): void;
/**
* Clear the entire buffer, making the prompt line the new first line.
*/