diff options
author | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2012-08-29 20:05:25 +0200 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2012-08-29 20:05:25 +0200 |
commit | aaef13aaaaddbbf1e793b9df0e9cfc4d6d28d1b9 (patch) | |
tree | a84f4ddb4c7b6e3be0134884245252135388dee1 | |
parent | 12de47a93393e098d5d48333290a5710a543c3d6 (diff) | |
download | st-aaef13aaaaddbbf1e793b9df0e9cfc4d6d28d1b9.tar.gz st-aaef13aaaaddbbf1e793b9df0e9cfc4d6d28d1b9.zip |
Add CHT sequence
This sequence performs "Cursor Forward Tabulation <n> tab stops", which
although is not present in vt100 or vt102, xterm accepts it.
---
st.c | 5 +++++
1 file changed, 5 insertions(+)
-rw-r--r-- | st.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1226,6 +1226,11 @@ csihandle(void) { | |||
1226 | DEFAULT(escseq.arg[1], 1); | 1226 | DEFAULT(escseq.arg[1], 1); |
1227 | tmoveto(escseq.arg[1]-1, escseq.arg[0]-1); | 1227 | tmoveto(escseq.arg[1]-1, escseq.arg[0]-1); |
1228 | break; | 1228 | break; |
1229 | case 'I': /* CHT -- Cursor Forward Tabulation <n> tab stops */ | ||
1230 | DEFAULT(escseq.arg[0], 1); | ||
1231 | while (escseq.arg[0]--) | ||
1232 | tputtab(); | ||
1233 | break; | ||
1229 | case 'J': /* ED -- Clear screen */ | 1234 | case 'J': /* ED -- Clear screen */ |
1230 | sel.bx = -1; | 1235 | sel.bx = -1; |
1231 | switch(escseq.arg[0]) { | 1236 | switch(escseq.arg[0]) { |