From 2c836ede76e4c709b3fb7a99defe2e83e83b18d5 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Mon, 21 Apr 2025 06:34:45 -0700 Subject: [PATCH] Tweak API position/docs --- typings/xterm-headless.d.ts | 14 +++++++------- typings/xterm.d.ts | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) 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; } /**