Skip to content
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

Switch screens #232

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Switch screens #232

wants to merge 3 commits into from

Conversation

scrouthtv
Copy link
Collaborator

This is a draft regarding
#162 #182 #206
because I'd be interested in such a functionality and the possibilities they imply.
Those issues suggest adding functionality to switch between screens.
Screens are also referred to as "alternate screen" or "cup mode".

This draft implements basic functionality to switch between screens, although I did not extensively test anything.
I guess these three refer to a functionality similar to this:

Peek 2020-12-15 12-54
(This is editbox.go with an added call to SelectScreen(false) after the initialization, for convenience I added it as screens.go)

Notice how I can't override an existing character using a space.

Also note that it is impossible to read what characters were there before termbox was started.

If I'm not mistaken, nsf has previously expressed that he is not interested in such a feature, so I'll wait for some feedback on this matter.

@scrouthtv scrouthtv self-assigned this Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant