summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console/ChangeLog3
-rw-r--r--console/display.c6
-rw-r--r--console/hurd.ti4
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.