putty-style ED2 sequence handling as terminal option

This commit is contained in:
blashaq
2024-11-21 18:16:19 +00:00
parent 41e8ae3959
commit 9aba07f8f8
5 changed files with 68 additions and 6 deletions
+6
View File
@@ -248,6 +248,12 @@ declare module '@xterm/headless' {
* All features are disabled by default for security reasons.
*/
windowOptions?: IWindowOptions;
/**
* If enabled ED2 (clear screen) escape sequence will push erased text to scrollback.
* This emulates PuTTY default clear screen behaviour.
*/
scrollOnDisplayErase?: boolean
}
/**
+6
View File
@@ -331,6 +331,12 @@ declare module '@xterm/xterm' {
* decorations underneath the scroll bar.
*/
overviewRuler?: IOverviewRulerOptions;
/**
* If enabled ED2 (clear screen) escape sequence will push erased text to scrollback.
* This emulates PuTTY default clear screen behaviour.
*/
scrollOnDisplayErase?: boolean
}
/**