Another stupid question...

Shagshag13 shagshag13 at yahoo.fr
Tue May 28 12:48:58 EDT 2002


so i've checked it, i already have an env var called TERM=xterm but when i'm
in python
command line, it doesn't take into account arrow keys. (^[[A, ^[[B, ^[[C,
^[[D)

for example here is what i get

[/home/shashag 21 ] python
Python 2.2.1 (#1, May 28 2002, 16:46:07)
[GCC 2.95.2 19991024 (release)] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> ^[[A^[[B^[[D^[[C

thanks in advance,

s13.

"6e6op" <6e6op at excite.it> a écrit dans le message de news:
ad088q$42s$1 at lacerta.tiscalinet.it...
> you can do 2 things:
> 1) look for the terminal specification you use and  (if possible) turn to
on
> the arrows keys code, then type export TERM=vtXXX where XXX is the number
of
> your terminal codes (there is written in some options in your program)







More information about the Python-list mailing list