[IPython-user] IPython readline foreign keyboards (belgian) and win32 platform

Vivian De Smedt vivian at vdesmedt.com
Wed Feb 23 11:56:12 CST 2005

Dear IPython user.

This post is a bit specific in the sense that I'am a win32 user with a 
belgian keyboard.

The goal of this post is to see if the problem I face using IPython and 
the readline library are shared with other IPython users and if the 
workarround I developped should be proposed as a fix to the Gary 
Bishop's readline implementation or not.

I split the post in three items

1. For the user of a belgian keyboard:

The user of a belgian keyboard at least the one that must use the Gary 
Bishop implementation of the readline library have a keyboard binding 

The key '{', '[', '^',  '~', '´', '`', ... among others are not working. 
Which is a bit painfull to write python commands.
However for some of these keys ('{', '[') there is a solution: adapt the 
.inputrc file but for some others ( '~', '´', '`') I was unable to find 
any solution that preserve the integrity of the Gary Bishop's readline 

I'am interested to know is someone share this problem, if he found 
solution or if he is interested to the one I developped.

2. Classic Python prompt usage:

This part of the post is somewhat strange. It is about installing the 
Gary Bishop's readline library and still using the IPython package.

In doing so:
- The previous solution to the belgian keyboard problem isn't working 
anymore (the readline library don't load the .inputrc file)
- The exit command ask for Ctrl-Z input that fail to react as expected.

To solve the first subitem I slightly change the Gary Bishop's readline 
library such that it load the .inputrc file
To solve the second I slightly change the Gary Bishop's readline library 
such that both Ctrl+D and Ctrl+Z on empty lines translate into quiting 
the prompt.

Again I wonder if someone share the same feeling about these Python 
command prompt with Gary Bishop's readline library and what do they 
think about my proposition of change.

3. Classic Windows binding.

By default the Gary Bishop's readline library come with vi/emacs like 
binding which is nice. But windows user could want to be able to 
customize these binding through the .inputrc file or maybe to switch 
from one type of binding to an another (I forseen three kind, emacs, vi, 

The Gary's implementation come only with the emacs binding. I made 
change in the library to have three binding and key combinasion to be 
able to switch from one to the other.

Futhermore I add the possibilities to be able to bind through the 
.inputrc  a key (e.g.: the Esc key) to an operation that kill the whole 
line by opposition that kill the first part of the line (till the caret, 
Ctrl+K) or the last part (from the caret, Ctrl+U) such that window user 
could have a binding close to they experience of the windows command prompt.

Again and again I wonder if such change in meaningfull for some of you.

Thank for reading this long post and for every reponse that you can make.
Kindest regards,

More information about the IPython-user mailing list