Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Processing user input as it's entered

Thread Tools

Re: Processing user input as it's entered

Posts: n/a
On 26 March 2013 14:41, Arnaud Delobelle <(E-Mail Removed)> wrote:

> On 26 March 2013 10:07, Sven <(E-Mail Removed)> wrote:
> > 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.

> Can you use curses (

This could work. I've not used it before so I am having some issues echoing
out the text. I assume I can use this without having to create an ncurses


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Processing user input as it's entered Arnaud Delobelle Python 0 03-26-2013 02:41 PM
Processing user input as it's entered Sven Python 0 03-26-2013 10:07 AM
last-input entered on command line Ian M. Asaff Ruby 0 11-25-2010 07:05 PM
Checking that user has entered a word or words in text input form using regular expressions... Luke Matuszewski Javascript 8 04-22-2006 07:47 AM
Date entered from textbox becomes null (1/1/1900) when entered into SQL table. TN Bella ASP .Net 1 07-01-2004 02:53 PM