mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04:00
csi: implement \E[Z - back tab
This commit is contained in:
parent
751ac55f64
commit
ba322c4eff
2 changed files with 10 additions and 1 deletions
8
csi.c
8
csi.c
|
|
@ -541,6 +541,14 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
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':
|
||||
/* smir - insert mode enable */
|
||||
assert(false && "untested");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue