curses woes

Oleg Broytmann phd at phd.fep.ru
Tue Jul 10 04:11:39 EDT 2001


On Tue, 10 Jul 2001, Rainy wrote:
> while 1:
>     c = win.getch()
>     if c == curses.KEY_BACKSPACE:
>         do_something()
>
> The problem is that backspace key shows up as ^? and doesn't match the above
> test. I also tried doing c == 14 but also without luck. I'm using
> curses.wrapper() here.

   Your terminal is incorrectly configured.

man 5 terminfo
man tic
man stty

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list