csi: implement \E[Z - back tab

This commit is contained in:
Daniel Eklöf 2019-07-22 20:33:50 +02:00
parent 751ac55f64
commit ba322c4eff
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 10 additions and 1 deletions

8
csi.c
View file

@ -541,6 +541,14 @@ csi_dispatch(struct terminal *term, uint8_t final)
break; break;
} }
case 'Z': {
/* Back tab */
int col = term->cursor.col;
col = (col - 8 + 7) / 8 * 8;
term_cursor_right(term, col - term->cursor.col);
break;
}
case 'h': case 'h':
/* smir - insert mode enable */ /* smir - insert mode enable */
assert(false && "untested"); assert(false && "untested");

View file

@ -27,7 +27,8 @@ foot+base|foot base fragment,
acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
bel=^G, bel=^G,
blink=\E[5m, blink=\E[5m,
bold=\e[1m, bold=\E[1m,
cbt=\E[Z,
civis=\E[?25l, civis=\E[?25l,
clear=\E[H\E[2J, clear=\E[H\E[2J,
cnorm=\E[?12l\E[?25h, cnorm=\E[?12l\E[?25h,