Replies: 1 comment
-
|
Some relevant discussion in xtermjs/xterm.js#1727 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At a shell, you can typically run ctrll to clear the screen and keep the scrollback intact.
cleardoesn't.I tried to
alias clear='printf "\x1b[H\x1b[2J"'to get the same behavior of ctrll, but apparently it didn't work like I expected: scrollback got clobbered.My question being: why is there a difference?
Some more context: I consulted with @rockorager. Apparently we have the following snippet:
ghostty/src/termio/Termio.zig
Lines 475 to 505 in 8f5f432
So there is a difference of
CSI 2 Jwhether we are running at a prompt or not:So he asked me to open discussion to see if the difference is intentional.
Beta Was this translation helpful? Give feedback.
All reactions