I'm having a hard time even googling this, because I don't know the right keywords. Some command-line apps (such as vi and less) take over the whole console screen and present an interactive interface to the user. Upon exiting such an app, the screen is returned to the state it was in before the app was launched. I want to write a program that behaves in this fashion, but again, I don't even know what this is called, so I can't find any documentation for how it's accomplished.
So, my question is threefold:
Press the menu button in the top-right corner of the window and select Full Screen, or press F11 .
Switching Between Screen Terminal Windows To create a new screen window, just press “Ctrl-A” and “c“.
To turn off fullscreen mode and return to the standard gedit window, press F11 . You can also move your mouse cursor to the top of the screen, and wait for the menu bar to appear. When the menu bar appears, select the Leave Fullscreen button.
As said in some comments, you are looking for ncurses. The Linux Documentation Project have a very good HOWTO on ncurses for C that I used myself to start on it
https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
The feature you are describing is the alternate screen buffer. I think that [N]Curses will enable this by default. There are certainly curses bindings for Ruby, Python, and other scripting languages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With