Show More
@@ -468,7 +468,9 b' class _CommandInput(object):' | |||||
468 | curses.KEY_LEFT: "left", |
|
468 | curses.KEY_LEFT: "left", | |
469 | curses.KEY_RIGHT: "right", |
|
469 | curses.KEY_RIGHT: "right", | |
470 | curses.KEY_HOME: "home", |
|
470 | curses.KEY_HOME: "home", | |
|
471 | 1: "home", | |||
471 | curses.KEY_END: "end", |
|
472 | curses.KEY_END: "end", | |
|
473 | 5: "end", | |||
472 | # FIXME: What's happening here? |
|
474 | # FIXME: What's happening here? | |
473 | 8: "backspace", |
|
475 | 8: "backspace", | |
474 | 127: "backspace", |
|
476 | 127: "backspace", | |
@@ -748,7 +750,9 b' class ibrowse(ipipe.Display):' | |||||
748 | curses.KEY_LEFT: "left", |
|
750 | curses.KEY_LEFT: "left", | |
749 | curses.KEY_RIGHT: "right", |
|
751 | curses.KEY_RIGHT: "right", | |
750 | curses.KEY_HOME: "home", |
|
752 | curses.KEY_HOME: "home", | |
|
753 | 1: "home", | |||
751 | curses.KEY_END: "end", |
|
754 | curses.KEY_END: "end", | |
|
755 | 5: "end", | |||
752 | ord("<"): "prevattr", |
|
756 | ord("<"): "prevattr", | |
753 | 0x1b: "prevattr", # SHIFT-TAB |
|
757 | 0x1b: "prevattr", # SHIFT-TAB | |
754 | ord(">"): "nextattr", |
|
758 | ord(">"): "nextattr", | |
@@ -951,6 +955,8 b' class ibrowse(ipipe.Display):' | |||||
951 | } |
|
955 | } | |
952 | if keycode in specialsnames: |
|
956 | if keycode in specialsnames: | |
953 | return specialsnames[keycode] |
|
957 | return specialsnames[keycode] | |
|
958 | elif 0x00 < keycode < 0x20: | |||
|
959 | return "CTRL-%s" % chr(keycode + 64) | |||
954 | return repr(chr(keycode)) |
|
960 | return repr(chr(keycode)) | |
955 | for name in dir(curses): |
|
961 | for name in dir(curses): | |
956 | if name.startswith("KEY_") and getattr(curses, name) == keycode: |
|
962 | if name.startswith("KEY_") and getattr(curses, name) == keycode: |
@@ -3,8 +3,9 b'' | |||||
3 | * IPython/Extensions/ibrowse.py: Add two new commands to |
|
3 | * IPython/Extensions/ibrowse.py: Add two new commands to | |
4 | ibrowse: hideattr (mapped to "h") hides the attribute under |
|
4 | ibrowse: hideattr (mapped to "h") hides the attribute under | |
5 | the cursor. "unhiderattrs" (mapped to "H") reveals all hidden |
|
5 | the cursor. "unhiderattrs" (mapped to "H") reveals all hidden | |
6 | attributes again. Remapped the help command to "?". |
|
6 | attributes again. Remapped the help command to "?". Display | |
7 |
|
7 | keycodes in the range 0x01-0x1F as CTRL-xx. Add CTRL-a and CTRL-e | ||
|
8 | as keys for the "home" and "end" commands. | |||
8 |
|
9 | |||
9 | 2006-06-15 Ville Vainio <vivainio@gmail.com> |
|
10 | 2006-06-15 Ville Vainio <vivainio@gmail.com> | |
10 |
|
11 |
General Comments 0
You need to be logged in to leave comments.
Login now