summaryrefslogtreecommitdiff
path: root/console
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-10-10 12:14:10 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-10-10 12:14:10 +0000
commitbf99dce4aef7ea54ea5d8fb9c657706a1d47cac4 (patch)
treed4af24fd0bf23529ebef8e7d78bb12cbbb9943b1 /console
parent9f7e3ce3b5aaf56dd3e7a0aef230ce52b6deea54 (diff)
2002-10-10 Marcus Brinkmann <marcus@gnu.org>
* display.c (handle_esc_bracket): Implement <bw> for <cub1>.
Diffstat (limited to 'console')
-rw-r--r--console/ChangeLog4
-rw-r--r--console/display.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/console/ChangeLog b/console/ChangeLog
index 049c1b74..ea4fe14c 100644
--- a/console/ChangeLog
+++ b/console/ChangeLog
@@ -1,3 +1,7 @@
+2002-10-10 Marcus Brinkmann <marcus@gnu.org>
+
+ * display.c (handle_esc_bracket): Implement <bw> for <cub1>.
+
2002-09-22 Marcus Brinkmann <marcus@gnu.org>
* pager.c, pager.h: New file.
diff --git a/console/display.c b/console/display.c
index ac9ef92f..42920268 100644
--- a/console/display.c
+++ b/console/display.c
@@ -1195,6 +1195,12 @@ 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;