[hackers] [st] added VT100 RI. || Aur?lien Aptel

From: <hg_AT_suckless.org>
Date: Sun, 21 Feb 2010 13:40:08 +0000 (UTC)

changeset: 74:91327bda63a3
tag: tip
user: Aur?lien Aptel <aurelien.aptel_AT_gmail.com>
date: Sun Feb 21 14:39:31 2010 +0100
files: st.c
description:
added VT100 RI.

diff -r 59275f83f495 -r 91327bda63a3 st.c
--- a/st.c Sun Feb 21 14:28:32 2010 +0100
+++ b/st.c Sun Feb 21 14:39:31 2010 +0100
@@ -860,6 +860,13 @@
                                 tmoveto(term.c.x-1, term.c.y);
                                 term.esc = 0;
                                 break;
+ case 'M': /* RI -- Reverse index */
+ if(term.c.y == term.top)
+ tinsertblankline(1);
+ else
+ tmoveto(term.c.x, term.c.y-1);
+ term.esc = 0;
+ break;
                         case '=': /* DECPAM */
                                 term.mode |= MODE_APPKEYPAD;
                                 term.esc = 0;
@@ -870,9 +877,11 @@
                                 break;
                         case '7':
                                 tcursor(CURSOR_SAVE);
+ term.esc = 0;
                                 break;
                         case '8':
                                 tcursor(CURSOR_LOAD);
+ term.esc = 0;
                                 break;
                         default:
                                 fprintf(stderr, "erresc: unknown sequence ESC %02X '%c'\n", c, isprint(c)?c:'.');
Received on Sun Feb 21 2010 - 13:40:08 UTC

This archive was generated by hypermail 2.2.0 : Sun Feb 21 2010 - 13:48:06 UTC