I can't live without it. I have been using IPython a lot
on Windows. IPython's pyreadline is marvalous. But it has
one shortcoming (defect?). That is the 'Ctrl-h' key doesn't
work like 'backward-delete-char'. I have been searching for
a solution, for a long time. Only when I found this post,
has the problem been sovled:
http://makunouchi.jp/zope3/9900417093
:) It is in Japanese. But who minds. Apply the patch to your
pyreadline's keysyms.py file. Ctrl-h is back!!
Post the patch below if the Japanese link scares you.
--- pyreadline/keysyms/keysyms.py.orig
+++ pyreadline/keysyms/keysyms.py
@@ -119,6 +119,10 @@
char = chr(VkKeyScan(ord(char)) & 0xff)
elif control:
char=chr(keycode)
+ if control and ord(char)==8 and keycode==72:
+ keycode=8
+ control=False
+ state &= 0xfffffff7
try:
keyname=code2sym_map[keycode]
except KeyError:
No comments:
Post a Comment