interactive interpreter, debugger and broken arrow keys with Mac OS X 10.2 Terminal

Jp Calderone exarkun at intarweb.us
Wed Feb 12 19:27:59 EST 2003


On Thu, Feb 13, 2003 at 12:12:14AM +0000, Jim Correia wrote:
> When using the interactive interpreter or debugger with the Mac OS X 
> Terminal my arrow keys don't work as I'd expect (as they do in the 
> shell, gdb, etc.). Instead I get escape sequences like: ^[[A.
> 
> How do I fix this?

  Enable readline support.  This may be as simple as importing the
"readline" module, or as difficult as building Python from source.

  Jp

-- 
#!/bin/bash
( LIST=(~/.netscape/sigs/*.sig)
  cat ${LIST[$(($RANDOM % ${#LIST[*]}))]}
  echo --$'\n' `uptime` ) > ~/.netscape/.signature
-- 
 up 4 days, 4:28, 5 users, load average: 0.00, 0.00, 0.00
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20030212/90fc8ae3/attachment.sig>


More information about the Python-list mailing list