Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
636c369
)
added VT100 RI.
author
Aurélien Aptel <
[email protected]
>
Sun, 21 Feb 2010 13:39:31 +0000
(14:39 +0100)
committer
Aurélien Aptel <
[email protected]
>
Sun, 21 Feb 2010 13:39:31 +0000
(14:39 +0100)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
84292f5
..
c360900
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-860,6
+860,13
@@
tputc(char c) {
tmoveto(term.c.x-1, term.c.y);
term.esc = 0;
break;
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;
case '=': /* DECPAM */
term.mode |= MODE_APPKEYPAD;
term.esc = 0;
@@
-870,9
+877,11
@@
tputc(char c) {
break;
case '7':
tcursor(CURSOR_SAVE);
break;
case '7':
tcursor(CURSOR_SAVE);
+ term.esc = 0;
break;
case '8':
tcursor(CURSOR_LOAD);
break;
case '8':
tcursor(CURSOR_LOAD);
+ term.esc = 0;
break;
default:
fprintf(stderr, "erresc: unknown sequence ESC %02X '%c'\n", c, isprint(c)?c:'.');
break;
default:
fprintf(stderr, "erresc: unknown sequence ESC %02X '%c'\n", c, isprint(c)?c:'.');