-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Clear command not work as expected when scroll exist. the history is not display #1842
Comments
This is the expected behaviour. The clear command usually clears all lines in the active part of the screen, pushing up the prompt to the first line. Everything outside the screen (what is in your scrollback) usually won't get touched by the clear command. |
@mofux
as you can see from the video the iterm display all history but the xtermjs diplay |
I can confirm Lines 1740 to 1758 in d27b43d
@Tyriar Could / should we be smarter with this? I remember there was another (old) issue open where we discussed clear behaviour, but cannot find it right now. |
Pardon me, Lines 788 to 795 in d27b43d
|
@mofux I think we had several issues regarding this. A proper solution does not exist, its not officially specced anywhere beside some oldish VT stuff (which does not deal with scrollbuffer things). Imho there are 3 different approaches to deal with it as seen by other emulators:
Note that its not easy to adopt the other behaviors - Other issues regarding this: #1727, #587, #106. Edit:
Lol guess the terminfo entry xterm.js is referring to is wrong here, it misses the ED3 thing. The intention of |
Looks like this is an exact dupe of #1727 |
Details
Steps to reproduce
ls
command couple of times until you see a scrollbarclear
commandwe can't see all the history.
The text was updated successfully, but these errors were encountered: