| Deutsch English Français Italiano |
|
<87plko9acw.fsf@nosuchdomain.example.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.python
Subject: Re: Tools to help with text mode (i.e. non-GUI) input
Date: Tue, 14 Jan 2025 16:41:51 -0800
Organization: None to speak of
Lines: 25
Message-ID: <87plko9acw.fsf@nosuchdomain.example.com>
References: <2113dab2-59ba-408e-b34a-78722d525f8c@yahoo.co.uk>
<3ab7002b-689d-4609-96d7-bb388513f227@yahoo.co.uk>
<mailman.68.1736808383.2912.python-list@python.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 15 Jan 2025 01:41:52 +0100 (CET)
Injection-Info: dont-email.me; posting-host="e8edcbbdaebfe3f775cad9f5d43cf78d";
logging-data="2791533"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/ul5ZQhXXzHcV9qqmqol4"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:boMlnn4wdFbhcANM2AMg0yQNGLo=
sha1:ZpiXhkOOboru6j+8upETOhknzQ8=
Bytes: 2122
Alan Gauld <learn2program@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@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */