Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41908 > unrolled thread

Re: Processing user input as it's entered

Started byArnaud Delobelle <arnodel@gmail.com>
First post2013-03-26 14:41 +0000
Last post2013-03-26 14:41 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Processing user input as it's entered Arnaud Delobelle <arnodel@gmail.com> - 2013-03-26 14:41 +0000

#41908 — Re: Processing user input as it's entered

FromArnaud Delobelle <arnodel@gmail.com>
Date2013-03-26 14:41 +0000
SubjectRe: Processing user input as it's entered
Message-ID<mailman.3748.1364308901.2939.python-list@python.org>
On 26 March 2013 10:07, Sven <svenito@gmail.com> 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 (http://docs.python.org/2/library/curses.html)

-- 
Arnaud

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web