Convert input to upper case on screen as it is typed

Gregory Ewing greg.ewing at canterbury.ac.nz
Thu Apr 14 02:35:05 EDT 2016


Ben Finney wrote:
> I need a solution that is specific to the
> Python program: it should only affect this program, and should not need
> anything special done to the terminal when invoking the program.

You might be able to do something with the termios module
to put the tty driver into the appropriate mode.

If you do that, you'll have to be careful to set it back
again before the program exits for any reason, otherwise
your shell session will be messed up.

-- 
Greg



More information about the Python-list mailing list