[SciPy-user] going through a lot of plots
David Warde-Farley
dwf at cs.toronto.edu
Thu May 14 11:49:34 EDT 2009
On 13-May-09, at 9:27 PM, Zachary Pincus wrote:
> Old-school alternative is to put the TTY into cbreak (aka "rare" mode,
> between "raw" and "cooked"), and capture a single key-hit. (Except
> that ^C still breaks, which is handy.) For windows, the C runtime has
> a similar getkey function.
>
> Here's windows / posix code for that that I've assembled from various
> snippets online; note that the latter uses the well-known decorator
> module. I've also included an "iskeydown" function which I find useful
> in various situations...
Awesome, thanks!
David
More information about the SciPy-User
mailing list