termbox-go icon indicating copy to clipboard operation
termbox-go copied to clipboard

Switch screens

Open scrouthtv opened this issue 4 years ago • 0 comments

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 avatar Dec 15 '20 12:12 scrouthtv