vte: implement IND and RI

IND and RI both either move one row up or down and perform scroll up/down
if required.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-05-28 17:56:44 +02:00
parent 2e6bac3e67
commit 1d6eb0dd72

View File

@ -269,7 +269,7 @@ static void do_execute(struct kmscon_vte *vte, uint32_t ctrl)
break;
case 0x84: /* IND */
/* Move down one row, perform scroll-up if needed */
/* TODO */
kmscon_console_move_down(vte->con, 1, true);
break;
case 0x85: /* NEL */
/* CR/NL with scroll-up if needed */
@ -281,7 +281,7 @@ static void do_execute(struct kmscon_vte *vte, uint32_t ctrl)
break;
case 0x8d: /* RI */
/* Move up one row, perform scroll-down if needed */
/* TODO */
kmscon_console_move_up(vte->con, 1, true);
break;
case 0x8e: /* SS2 */
/* Temporarily map G2 into GL for next char only */
@ -349,7 +349,7 @@ static void do_esc(struct kmscon_vte *vte, uint32_t data)
switch (data) {
case 'D': /* IND */
/* Move down one row, perform scroll-up if needed */
/* TODO */
kmscon_console_move_down(vte->con, 1, true);
break;
case 'E': /* NEL */
/* CR/NL with scroll-up if needed */
@ -361,7 +361,7 @@ static void do_esc(struct kmscon_vte *vte, uint32_t data)
break;
case 'M': /* RI */
/* Move up one row, perform scroll-down if needed */
/* TODO */
kmscon_console_move_up(vte->con, 1, true);
break;
case 'N': /* SS2 */
/* Temporarily map G2 into GL for next char only */