-
Notifications
You must be signed in to change notification settings - Fork 27
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
Support alternative terminal screens #147
Comments
As The website you refer to above covers Linux and Windows supports these codes (https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences#alternate-screen-buffer). Do you know if the native terminal on macOS (Terminal) supports them? |
These are known as
or alternatively from
|
I'm not sure which code is more portable, 47 or 1049.
|
As Windows' documentation suggests it implements |
I can confirm that code 1049 works with Terminal.app and iTerm.app on macOS. |
On naming, XTerm (the origin of these codes, I think) describes the functions as |
I don't have capacity to work on this issue at the moment but I'm interested in having this feature in the library so if this issue is not resolved in the future, I'll try to work on it at some point. I personally okay with long names for the functions 👌🏻 In my vision, the name |
I've made a pull request that adds this. I was mistaken, in that XTerm actually calls it |
Most common terminal simulators support alternative terminal screens:
However, I haven't found any functions in
ansi-terminal
to support this. Here is a simple Haskell script that uses this feature:Would it be possible to introduce functions like
enterAlternativeScreen
andleaveAlternativeScreen
inansi-terminal
?The text was updated successfully, but these errors were encountered: