From bf99dce4aef7ea54ea5d8fb9c657706a1d47cac4 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 10 Oct 2002 12:14:10 +0000 Subject: 2002-10-10 Marcus Brinkmann * display.c (handle_esc_bracket): Implement for . --- console/ChangeLog | 4 ++++ console/display.c | 6 ++++++ 2 files changed, 10 insertions(+) (limited to 'console') 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 + + * display.c (handle_esc_bracket): Implement for . + 2002-09-22 Marcus Brinkmann * 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 . */ /* 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; -- cgit v1.2.3