Tools to help with text mode (i.e. non-GUI) input
Keith Thompson
Keith.S.Thompson+u at gmail.com
Tue Jan 14 19:41:51 EST 2025
Alan Gauld <learn2program at gmail.com> writes:
> On 11/01/2025 14:28, Chris Green via Python-list wrote:
>> I'm looking for Python packages that can help with text mode input,
>
> The standard package for this is curses which comes as part
> of the standard library on *nix distros.
The thing about curses (which may or may not be a problem) is that, by
design, it takes over the whole screen. If you want to do simpler text
manipulations (showing a dismissible message, showing bold text, etc.)
without interfering with existing text, curses can't do it, at least not
easily.
If your terminal supports it, your current screen contents can be
restored after the application finishes (curses enables the "alternate
screen" and then restores the primary screen on exit).
There don't seem to be a lot of good solutions for doing curses-like
text manipulation without taking over the entire screen.
[...]
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u at gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
More information about the Python-list
mailing list