Re: How to Add ANSI Color to User Response

Liste des GroupesRevenir à cl python 
Sujet : Re: How to Add ANSI Color to User Response
De : PythonList (at) *nospam* DancesWithMice.info (dn)
Groupes : comp.lang.python
Date : 10. Apr 2024, 23:43:37
Autres entêtes
Organisation : DWM
Message-ID : <mailman.89.1712785425.3468.python-list@python.org>
References : 1 2
User-Agent : Mozilla Thunderbird
On 11/04/24 06:50, WordWeaver Evangelist via Python-list wrote:
I have a simple question. I use the following textPrompt in some of my Jython modules:
  '\nYour choice is? (A B C D E): ', maxChars=1, autoAccept=False, forceUppercase=True)
Is there a way to add an ANSI color code to the end where the conditions are, so that the color of the user’s input is of a color of my choosing, instead of just white?
Thank you very much in advance.
Kind regards,
Bill Kochman
Haven't tried using any of theses techniques, but may define input() color, as well as print():-
How to print colored terminal text in Python
MAR 06, 2024
...
https://byby.dev/py-print-colored-terminal-text
--
Regards =dn

Date Sujet#  Auteur
10 Apr 24 o Re: How to Add ANSI Color to User Response1dn

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal