How to Add ANSI Color to User Response

Liste des GroupesRevenir à cl python 
Sujet : How to Add ANSI Color to User Response
De : billkochman777 (at) *nospam* gmail.com (WordWeaver Evangelist)
Groupes : comp.lang.python
Date : 10. Apr 2024, 19:50:49
Autres entêtes
Message-ID : <mailman.87.1712775067.3468.python-list@python.org>
References : 1
User-Agent : Apple Mail (2.3774.500.171.1.1)

Hello List,

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
Date Sujet#  Auteur
10 Apr 24 * How to Add ANSI Color to User Response6WordWeaver Evangelist
11 Apr 24 `* Re: How to Add ANSI Color to User Response5Stefan Ram
11 Apr 24  `* Re: How to Add ANSI Color to User Response4rthiebaud
11 Apr 24   +* Re: How to Add ANSI Color to User Response2Stefan Ram
15 Apr 24   i`- Re: How to Add ANSI Color to User Response1Stefan Ram
12 Apr 24   `- Re: How to Add ANSI Color to User Response (Posting On Python-List Prohibited)1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal