hterm: CSI-J3 should wipe scrollback (with a config option) |
||
Issue description
currently hterm has this:
} else if (arg == 3) {
// The xterm docs say this means "Erase saved lines", but we'll just clear
// the display since killing the scrollback seems rude.
this.terminal.clear();
we should add a config knob here akin to enable-dec12 and have the default behavior match xterm. namely, it should actually clear scrollback and not just the current screen.
,
Sep 9
The following revision refers to this bug: https://chromium.googlesource.com/apps/libapps/+/38f267d88c7b47b53a00989b794cec261d10e3f5 commit 38f267d88c7b47b53a00989b794cec261d10e3f5 Author: Mike Frysinger <vapier@chromium.org> Date: Sun Sep 09 07:36:28 2018 hterm: change CSI-J-3 to clear scrollback We've long had CSI-J-3 (clear scrollback) wired to behave like CSI-J-2 (clear screen) because letting the remote clear local scrollback might not be the best behavior. Add a config setting to control it so we can change the CSI-J-3 extension to match xterm where we got it from. Bug: chromium:881507 Change-Id: I13cfa6d087e2ba456c80c9d0c7518b3db650fcfa Reviewed-on: https://chromium-review.googlesource.com/1214627 Reviewed-by: Vitaliy Shipitsyn <vsh@google.com> Tested-by: Mike Frysinger <vapier@chromium.org> [modify] https://crrev.com/38f267d88c7b47b53a00989b794cec261d10e3f5/hterm/js/hterm_vt.js [modify] https://crrev.com/38f267d88c7b47b53a00989b794cec261d10e3f5/hterm/js/hterm_vt_tests.js [modify] https://crrev.com/38f267d88c7b47b53a00989b794cec261d10e3f5/hterm/doc/ControlSequences.md [modify] https://crrev.com/38f267d88c7b47b53a00989b794cec261d10e3f5/hterm/js/hterm_preference_manager.js [modify] https://crrev.com/38f267d88c7b47b53a00989b794cec261d10e3f5/nassh/_locales/en/messages.json [modify] https://crrev.com/38f267d88c7b47b53a00989b794cec261d10e3f5/hterm/js/hterm_terminal.js
,
Sep 9
will be in the hterm-1.82/nassh-0.8.46 release |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Sep 9