Convert input to upper case on screen as it is typed

Dan Sommers dan at tombstonezero.net
Thu Apr 14 00:16:51 EDT 2016


On Thu, 14 Apr 2016 13:25:14 +1000, Ben Finney wrote:

> How can my Python program convert the user's keyboard input to upper
> case, as though the user has CAPS LOCK enabled?

I don't know which OS you're using, but if I run "stty olcuc" in my
Linux shell, then the input driver does that for me.  (Be careful; it's
tricky at that point to "fix" your shell.)

HTH,
Dan



More information about the Python-list mailing list