[pyrepl-checkins] pyrepl/pyrepl keymap.py,1.1,1.2
mwh@codespeak.net
mwh@codespeak.net
Sun, 14 Mar 2004 15:08:02 +0100 (MET)
Update of /cvs/pyrepl/pyrepl/pyrepl
In directory thoth.codespeak.net:/tmp/cvs-serv556
Modified Files:
keymap.py
Log Message:
Tweaks.
Index: keymap.py
===================================================================
RCS file: /cvs/pyrepl/pyrepl/pyrepl/keymap.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** keymap.py 16 May 2003 13:45:09 -0000 1.1
--- keymap.py 14 Mar 2004 14:08:00 -0000 1.2
***************
*** 38,45 ****
The extension to readline is that the sequence \\<KEY> denotes the
! sequence of charaters produced by hitting KEY. This gets a bit messy
! because the results of such depend on your terminal. If your terminal's
! terminfo entry doesn't describe KEY, trying to parse any keyspec
! containing \\<KEY> will return None.
Examples:
--- 38,42 ----
The extension to readline is that the sequence \\<KEY> denotes the
! sequence of charaters produced by hitting KEY.
Examples:
***************
*** 56,62 ****
"""
- # XXX it's actually possible to test this module, so it should have a
- # XXX test suite.
-
from curses import ascii
--- 53,56 ----
***************
*** 161,165 ****
s += 1
if ctrl:
! if len(ret) > 2:
raise KeySpecError, "\\C- must be followed by a character"
ret = ascii.ctrl(ret)
--- 155,159 ----
s += 1
if ctrl:
! if len(ret) > 1:
raise KeySpecError, "\\C- must be followed by a character"
ret = ascii.ctrl(ret)