BartC <b...@freeuk.com>:

> On 28/10/2016 10:22, Christian Gollwitzer wrote:
>> So "less" in C uses ncurses. You can do the same in Python, "import
>> curses" - instead of fiddling with terminal escape characters you
>> leave that to a library, just like less does it.
>
> As I commented further up the thread, I tried 'import curses' in
> Windows and it said it couldn't find the module.

I can't comment on Windows. I'm only talking about Linux. Christian was
talking about OSX.

As for why there isn't a facility that would do it on all platforms,
that question is akin to: Oh, why can't everybody just speak English?

> If you intend this keyboard handling to be a very minor part of a
> larger application, you don't want it falling over the first time
> someone tries to use it.

Didn't someone in this thread already mention a way to do it in Windows?


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to