473,387 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

help: up/down arrows in 2.3.4 interactiv

Hi.

I've just installed 2.3.4 from the source on a linux box.
In the interactive mode, up/down arrows do not work.
When I press 'up' python prints '^[[A' and down gives '^[[B'
What is wrong?

Thanks,

Gerald
Jul 18 '05 #1
4 1586
Jerald wrote:
Hi.

I've just installed 2.3.4 from the source on a linux box.
In the interactive mode, up/down arrows do not work.
When I press 'up' python prints '^[[A' and down gives '^[[B'
What is wrong?

Thanks,

Gerald


You need to build the readline module. Enable it in Modules/Setup and
do make, make install again.

(assuming you got the readline lib+headers to begin with)
Erik
Jul 18 '05 #2
Jerald <jf*@freemail.gr> writes:
I've just installed 2.3.4 from the source on a linux box.
In the interactive mode, up/down arrows do not work.
When I press 'up' python prints '^[[A' and down gives '^[[B'
What is wrong?


Try installing readline-dev, or whatever package you need to convince
your distro to install readline's headers.

Cheers,
mwh

--
<Nafai> w00t w00t w00t w00t!
<Nafai> I don't understand all of the code, but it works!
<Nafai> I guess I should check it in.
-- from Twisted.Quotes
Jul 18 '05 #3
Besides the good advice from others you might want to do the following:

[1] Read the readme well! Especially the section about building.
[2] Run configure like this:
configure >configure.log 2>&1
[3] Open config.log and configure.log in a word processor and search for
"no"
and "fail"
(this will tell you what the configure's view of your world is: such
as it cannot find some module's headers and other anomalies. You'll have to
fix the problems with modules you want to use.
[4] do the same thing with make.

A python gets along without arms, legs and batteries, but Python doesn't
do well at all.

"Jerald" <jf*@freemail.gr> wrote in message
news:ci***********@ulysses.noc.ntua.gr...
Hi.

I've just installed 2.3.4 from the source on a linux box.
In the interactive mode, up/down arrows do not work.
When I press 'up' python prints '^[[A' and down gives '^[[B'
What is wrong?

Thanks,

Gerald
--
http://mail.python.org/mailman/listinfo/python-list

Jul 18 '05 #4
* Jerald (2004-09-14 04:37 +0200)
I've just installed 2.3.4 from the source on a linux box.
In the interactive mode, up/down arrows do not work.
When I press 'up' python prints '^[[A' and down gives '^[[B'
What is wrong?


No readline? Mangled $INPUTRC? Anyway, probably not a python thing.
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Eric B | last post by:
I am looking for a text control (or API) that can emulate the behavior of CodeWrite where you can move the cursor in any direction on a blank text area and begin typing (so you are not confined to...
10
by: Ryan McGeary | last post by:
In a <select> drop-down, the onchange event isn't called when scrolling through the dropdown using the mouse-wheel and when crossing over a new <optgroup>. Using the example below, notice how...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
0
by: Jim H | last post by:
I'm trying to use an owner draw ListBox by subscribing to the DrawItem event to draw my custom control as an item in the ListBox. This event is triggered when I drag the scroll button but NOT when...
5
by: Jon | last post by:
All, I'm building a CMS, and have run into another problem that I'm not sure which direction to take on it. Basically, I allow users to add pages, and allow them to hide/unhide links...
3
by: Tom | last post by:
My user defined vertical scroll bar does not respond properly. :( public VScrollBar vs; .... vs = new VScrollBar(); vs.Parent = this; vs.Dock = DockStyle.Right; I intercept the scrollbar...
1
by: SR90 | last post by:
I'm trying to do this automatic scroll box, with an "up" and "down" arrow. The scroll box will have boxes lined up on top of each other moving continuously throug the scroll area. I need help...
29
by: Barry | last post by:
I know this is not a php question. If that bothers you, don't respond. If not, I sure could use the advice... I'm using a very abbreviated set of code to show a calendar. The idea is to simply...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.