473,594 Members | 2,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

No more command history with cursor keys

Since I've installed (from sources) Python 2.3.4 on SuSE 8.2 the command
history is not working anymore. When I press the cursor keys I get ^[[A or
^[[B ....
I also tried to install IPython but the same problem is there.

What's wrong?

Chris
Jul 18 '05 #1
4 1923
Chris <ch*********@sp am.com> wrote:
Since I've installed (from sources) Python 2.3.4 on SuSE 8.2 the command
history is not working anymore. When I press the cursor keys I get ^[[A or
^[[B ....
I also tried to install IPython but the same problem is there.

What's wrong?


You appear to be missing some parts of the 'readline' library --
probably the 'devel' half of it; or, if you have it installed, it's
somewhere the build process for Python and IPython can't find.
Alex
Jul 18 '05 #2
Indeed, readline.so exists in my Python2.2 install (part of SuSE 8.2) but
not in the Python 2.3.4 install that I built. I tried to copy the file but
there's a mismatch.
But I don't understand what went wrong: configure / make / make install all
finished successfully.
How can I get that readline.so file?

Chris

"Alex Martelli" <al*****@yahoo. com> a écrit dans le message de news:
1gkz5o9.1yipm4e 1bewl8jN%al**** *@yahoo.com...
Chris <ch*********@sp am.com> wrote:
Since I've installed (from sources) Python 2.3.4 on SuSE 8.2 the command
history is not working anymore. When I press the cursor keys I get ^[[A or ^[[B ....
I also tried to install IPython but the same problem is there.

What's wrong?


You appear to be missing some parts of the 'readline' library --
probably the 'devel' half of it; or, if you have it installed, it's
somewhere the build process for Python and IPython can't find.
Alex

Jul 18 '05 #3
Chris wrote:
Indeed, readline.so exists in my Python2.2 install (part of SuSE 8.2) but
not in the Python 2.3.4 install that I built. I tried to copy the file but
there's a mismatch.
But I don't understand what went wrong: configure / make / make install
all finished successfully.
How can I get that readline.so file?

Chris

"Alex Martelli" <al*****@yahoo. com> a écrit dans le message de news:
1gkz5o9.1yipm4e 1bewl8jN%al**** *@yahoo.com...
Chris <ch*********@sp am.com> wrote:
> Since I've installed (from sources) Python 2.3.4 on SuSE 8.2 the
> command history is not working anymore. When I press the cursor keys I
> get ^[[A or > ^[[B ....
> I also tried to install IPython but the same problem is there.
>
> What's wrong?


You appear to be missing some parts of the 'readline' library --
probably the 'devel' half of it; or, if you have it installed, it's
somewhere the build process for Python and IPython can't find.
Alex


You probably forgot to install the libreadline or the libreadline-devel
package on your system before you did the ./configure
Jul 18 '05 #4
Chris <ch*********@sp am.com> wrote:
Indeed, readline.so exists in my Python2.2 install (part of SuSE 8.2) but
not in the Python 2.3.4 install that I built. I tried to copy the file but
there's a mismatch.
Yep, it needs to get rebuilt for the specific Python version.
But I don't understand what went wrong: configure / make / make install all
finished successfully.
Lack of optional components (of which readline is one) is not an error
in the Python build, so it will finish successfully anyway.
How can I get that readline.so file?


Have you installed all readline-related RPMs (Suse's an RPM distro,
right?), including the -devel if any? If not try doing so and retry the
make, it should build the missing readline.so. Otherwise we'll have to
figure out where the readline pieces are and where the Python build is
looking for them instead.

Note that there are other optional components that you may not be
building if you don't have the related -devel RPMs installed. You can
look for all the .so that come with your suse-built Python 2.2 and see
which ones are missing in the 2.3 you built (not sure if some were just
dropped in the 2.2 -> 2.3 transition, but I don't think so...).
Alex
Jul 18 '05 #5

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

Similar topics

8
1333
by: Siemel Naran | last post by:
Hi. I'm writing a command shell that reads commands from standard input. At this point I have the command in a std::string. Now I want to execute this command in the shell. From the Borland newsgroups I learned that there is a function in stdlib.h called system. int system(const char *command); First question, is the system command ANSI compliant. Because I include <cstdlib> and write std::system(command.c_str()); it looks like an...
3
4501
by: inevercheckthisaddress | last post by:
I'm writing some stuff where I wish to allow the cursor keys to control elements in a page. This has not been a problem except with Safari which appears to duplicate the keydown and keyup events which are fired when the cursor keys are pressed. I.e. pressing and releasing say, K, results in one keydown event followed by one keyup event. Press any of the cursor keys results in two keydown events followed by two keyup events. A page...
0
1260
by: M | last post by:
Hi, I got a C# project which uses a "CORE" originally written in SDK. If I triger an event which bring up a Modeless dialog created using either old SDK C++ code or MFC/C++ code, the cursor keys don't work properly. If you use the cursor keys, the modeless dialog losses focus to the Parent Form. Anyone got any ideas of how fix this problem? Cheers,
7
5766
by: Seash | last post by:
Hi friends , here is the sample code private void txtbox_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if(e.KeyChar == 13) //enter { txtbox2.Focus(); }
2
1986
by: Rader | last post by:
As the textbox is focused,if I press the keys up/down arrow instead of other keys like a,b,c...... the input cursor moves left and right.Now its the problem,I want the cursor stay where it was(stop moving), as I press the up/down key.Can I do that through recoding the textbox's events in c#? I appreciate everyone can help me,thanks in advance~
4
1719
by: parcour | last post by:
Hi. I wonder if anyone could point me to a simple key mapping example for a command-line application. I would like to map the up and down arrow keys in my application to a couple of command history functions, but I don't know how to interact with the terminal (any terminal) to do this. If I use getc to trap an arrow key press I just get an ESC (27), and of course I have to wait for a newline to do anything with it. I've been looking...
2
2612
by: Sagaert Johan | last post by:
Hi I have a usercontrol , the keypress and keyup/down events do not seem to work on the cursor keys . How can i capture the cursor keys when my control has the focus ? Johan
1
3265
by: Stefan Bellon | last post by:
Hi all! I'm embedding Python in my own C (or rather Ada, but via the C interface) program. Everything runs fine. But I have a small question regarding command history. Let's take the simplest example: #include <Python.h> int main(void) {
5
3549
by: cantrell78 | last post by:
I'm dynamically building a list of divs that a user can click and sets off an action. I was hoping to build into it a way to use the up and down arrow keys to navigate the list and the enter key to select the one that is focused - any idea how I could achieve this? it's basically this: <div style="cursor:pointer; cursor:hand;" onClick="return callAction('1')">item 1</div> <div style="cursor:pointer; cursor:hand;" onClick="return
0
8241
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8366
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8227
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5402
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3853
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1469
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.