Arrow keys, home, and end not functioning in django terminal
I'm using django 1.2.5 and python 2.7. For some reason the terminal type is wrong in the django shell and it is annoyi开发者_如何学JAVAng the crap out of me. If I press up, down, right, left I get this:
>>> ^[[A^[[B^[[C^[[D
This only happens in ./manage.py shell
. It's not a problem in the normal python interpreter and it happens independent of screen being on. Any thoughts?
EDIT: This is the result of import code; code.interact()
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
If you are using Ubuntu, you might just need to restart the terminal. I've had the Terminal start to act funny for no apparent reason. Though in my case the mouse clicks and movements would be printed as odd character strings.
精彩评论