-
Notifications
You must be signed in to change notification settings - Fork 42
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
Mac OS X clear screen #10
Comments
I haven't tasted on Linux, but my guess is that unix/POSIX terminal with that escape code will do the same effect |
About this I saw another project (based on NodeJS) which seems to clear the screen correctly. https://github.com/substack/node-charm/blob/master/index.js#L110 Maybe we could use the same excape |
Is there a different terminal (emulator(?)) on OSX you could test this on, @Zorgatone? |
I have to get on my office machine. But yes I tested and I could see the previous screens. I use both the |
Also on Windows, I have issues if I try to clear the screen outside the standard CMD (ie. Git Bash and Cygwin, etc...). :/ (I've tried without |
For non- |
@nabijaczleweli: oh thanks about that. Anyway I think we could just print that extra |
Yeah |
Isn't there any way to detect |
I wouldn't think so, it's thoroughly transparent, AFAICT, and even if it wasn't, there would need to be a list of ANSI-characteristics for a fixed amount of pseudoterminals, which is, let's just say, inconvenient |
Uhm, ok |
I can confirm the terminal screen buffer doesn't reset either on If you scroll up you see all the previous states |
It does an equivalent of |
@nabijaczleweli |
On
On
|
Does it work on current |
I'd just v0v at it, because ~~~Mac~~~, but... |
I'll be on a Mac again tomorrow morning |
Solved by #21 (at least on OS X). Need to check on Linux |
In OS X I'm able to see all the example's screens (which should have been cleared) when I scroll my terminal upwards.
Can we portably reset the screen without keeping the old buffer?
The text was updated successfully, but these errors were encountered: