Processing user input as it's entered

S

Sven

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top