Abhishek Mishra wrote:
> Hi,
> 
> I was trying out Python in Belenix 0.7.1. I notice that pressing UP
> key doesn't have the default behavior. As seen in most of the
> interpretors -
> ------------------------------------------------------------------
> Python 2.4.6 (#2, Mar 19 2009, 10:00:53)
> [GCC 4.3.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> print "hello"
> hello
>>>> print "hello"                                    # on pressing up key, old 
>>>> statements come up
> ------------------------------------------------------------------
> 
> While in Belenix I observed the following -
> We get a ^[[A instead of previous statements on pressing up.
> 
> http://farm4.static.flickr.com/3426/3998455886_5e2d02cbd4_o.png
> 
> What could be responsible for such behavior ?

something to do with 'readline'.  Try 'rlwrap python' (if gettable on 
BeleniX).

(it basically "wraps" around the executable with "readline" like 
facilities.Its more useful for programs which not use 'libreadline' or 
the one installed is not usable)

HTH,
Amit
> 
> regards,
> Abhishek Mishra
> _______________________________________________
> belenix-discuss mailing list
> http://mail.opensolaris.org/mailman/listinfo/belenix-discuss
> http://groups.google.com/group/belenix-discuss
> 


-- 
Journal: http://amitksaha.wordpress.com
?-blog: http://twitter.com/amitsaha
IRC: cornucopic on #scheme, #lisp, #math, #linux

Reply via email to