diff options
Diffstat (limited to 'console')
-rw-r--r-- | console/ChangeLog | 4 | ||||
-rw-r--r-- | console/display.c | 6 |
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; |