serialize from the bottom of the terminal

This commit is contained in:
javacs3
2019-07-14 23:28:08 +08:00
parent fe3520c685
commit bca90245c8
3 changed files with 16 additions and 7 deletions
@@ -25,7 +25,7 @@ declare module 'xterm-addon-serialize' {
* to restore the state. The cursor will also be positioned to the correct cell.
* When restoring a terminal it is best to do before `Terminal.open` is called
* to avoid wasting CPU cycles rendering incomplete frames.
* @param rows The number of rows to serialize, starting from the top of the
* @param rows The number of rows to serialize, starting from the bottom of the
* terminal. This defaults to the number of rows in the viewport.
*/
public serialize(rows?: number): string;