[SciPy-user] going through a lot of plots

David Warde-Farley dwf@cs.toronto....
Thu May 14 10:49:34 CDT 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