diff --git a/typings/xterm-headless.d.ts b/typings/xterm-headless.d.ts index b3ed9ea4..3878d223 100644 --- a/typings/xterm-headless.d.ts +++ b/typings/xterm-headless.d.ts @@ -186,6 +186,13 @@ declare module '@xterm/headless' { */ scrollback?: number; + /** + * If enabled ED2 (clear screen) escape sequence will push + * erased text to scrollback. + * This emulates PuTTY default clear screen behavior. + */ + scrollOnDisplayErase?: boolean; + /** * The scrolling speed multiplier used for adjusting normal scrolling speed. */ @@ -255,13 +262,6 @@ 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 behavior. - */ - scrollOnDisplayErase?: boolean; } /** diff --git a/typings/xterm.d.ts b/typings/xterm.d.ts index 33da30de..9f0e0fb4 100644 --- a/typings/xterm.d.ts +++ b/typings/xterm.d.ts @@ -257,6 +257,13 @@ declare module '@xterm/xterm' { */ scrollback?: number; + /** + * If enabled the Erase in Display All (ED2) escape sequence will push + * erased text to scrollback, instead of clearing only the viewport portion. + * This emulates PuTTY's default clear screen behavior. + */ + scrollOnDisplayErase?: boolean; + /** * Whether to scroll to the bottom whenever there is some user input. The * default is true. @@ -338,13 +345,6 @@ 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 behavior. - */ - scrollOnDisplayErase?: boolean; } /**