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