diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2002-10-10 12:26:04 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2002-10-10 12:26:04 +0000 |
commit | b2387ac909d29ad33179a333447019b439aff6e1 (patch) | |
tree | f4aa60184e083557d12cdc21378e129173f33bfb /console | |
parent | bf99dce4aef7ea54ea5d8fb9c657706a1d47cac4 (diff) |
2002-10-10 Marcus Brinkmann <marcus@gnu.org>
* hurd.ti (cub1): Change from \E[D to ^H.
* display.c (handle_esc_bracket): Revert last change.
Diffstat (limited to 'console')
-rw-r--r-- | console/ChangeLog | 3 | ||||
-rw-r--r-- | console/display.c | 6 | ||||
-rw-r--r-- | console/hurd.ti | 4 |
3 files changed, 6 insertions, 7 deletions
diff --git a/console/ChangeLog b/console/ChangeLog index ea4fe14c..d82afdd8 100644 --- a/console/ChangeLog +++ b/console/ChangeLog @@ -1,5 +1,8 @@ 2002-10-10 Marcus Brinkmann <marcus@gnu.org> + * hurd.ti (cub1): Change from \E[D to ^H. + * display.c (handle_esc_bracket): Revert last change. + * display.c (handle_esc_bracket): Implement <bw> for <cub1>. 2002-09-22 Marcus Brinkmann <marcus@gnu.org> diff --git a/console/display.c b/console/display.c index 42920268..ac9ef92f 100644 --- a/console/display.c +++ b/console/display.c @@ -1195,12 +1195,6 @@ handle_esc_bracket (display_t display, char op) break; case 'D': /* ECMA-48 <CUB>. */ /* Cursor left: <cub>, <cub1>. */ - if (!parse->params[0] && user->cursor.col == 0) - { - /* This implements the <bw> functionality. */ - user->cursor.row--; - user->cursor.col = user->screen.width; - } user->cursor.col -= (parse->params[0] ?: 1); limit_cursor (display); break; diff --git a/console/hurd.ti b/console/hurd.ti index 68869d8d..504192b5 100644 --- a/console/hurd.ti +++ b/console/hurd.ti @@ -23,7 +23,9 @@ hurd|The GNU Hurd console server, # Move cursor to home position (to position P1, P2). home=\E[H, cup=\E[%i%p1%d;%p2%dH, # Move cursor one character (P1 characters) backwards. - cub1=\E[D, cub=\E[%p1%dD, +# We use ^H instead \E[D for cub1, as only ^H implements <bw> and it +# is one byte instead three. + cub1=^H, cub=\E[%p1%dD, # Move cursor one line (P1 lines) downwards. cud1=\E[B, cud=\E[%p1%dB, # Move cursor one character (P1 characters) forwards. |