From b2387ac909d29ad33179a333447019b439aff6e1 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 10 Oct 2002 12:26:04 +0000 Subject: 2002-10-10 Marcus Brinkmann * hurd.ti (cub1): Change from \E[D to ^H. * display.c (handle_esc_bracket): Revert last change. --- console/ChangeLog | 3 +++ console/display.c | 6 ------ console/hurd.ti | 4 +++- 3 files changed, 6 insertions(+), 7 deletions(-) (limited to 'console') 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 + * hurd.ti (cub1): Change from \E[D to ^H. + * display.c (handle_esc_bracket): Revert last change. + * display.c (handle_esc_bracket): Implement for . 2002-09-22 Marcus Brinkmann 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 . */ /* Cursor left: , . */ - if (!parse->params[0] && user->cursor.col == 0) - { - /* This implements the 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 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. -- cgit v1.2.3