-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clearScreen performs a full reset on some terminals #25
Comments
Hey @Tyriar :) Yeah this is a naming issue. Most people want
|
@Qix- The problem with Something like this exports.clearScreen = `${ESC}H${ESC}2J`;
exports.fullReset = '\u001Bc'; Then
What do you think? |
Yes sorry, I meant to edit addressing your original ticket but my internet cut out. You want |
Interesting, it seems to be random which terminals reset cursor position and which do not. Fun. It's @sindresorhus's decision - should If the latter (which I would agree with), then |
Maybe establish a difference between
This model tries to resemble the ECMA-48 sequence ideas (VT100+), have not looked up your existing definitions, thus it might collide here or there. Well see it as an inspiration. |
There is some useful info in https://github.com/watchexec/clearscreen/blob/main/src/lib.rs |
👋
We just had this issue reported which said
\x1bc
(fromclearScreen
) in xterm.js behaves differently to Terminal.app/iTerm xtermjs/xterm.js#3315. We behave as xterm/VTE does and don't think we should change so I would suggest indicating the fact in this lib thatclearScreen
may actually clear everything.Note also that RIS is also more destructive than just clearing the buffer, also resetting modes among other things.
The text was updated successfully, but these errors were encountered: