Processing user input as it's entered

Sven svenito at gmail.com
Tue Mar 26 06:07:00 EDT 2013


Hello,

Is there a way (ideally cross platform but a *nix OS solution would be
great) to process user input as they type?
What I aim to achieve is to count the number of characters a user has
entered and display it while they are typing. The entered text will also
need to be captured once the user has finished typing.

This is a gui-less CLI tool for python 2.7

I've seen some information on tty.setraw but I'm not sure how you'd go
about wiring that up.

Thanks

-- 
./Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130326/7b3b82df/attachment.html>


More information about the Python-list mailing list