mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
vt: implement ESC H - set tab stop at current column
This commit is contained in:
parent
13204d9337
commit
9ff48c2015
1 changed files with 11 additions and 0 deletions
11
vt.c
11
vt.c
|
|
@ -617,6 +617,17 @@ esc_dispatch(struct terminal *term, uint8_t final)
|
|||
term_cursor_left(term, term->cursor.col);
|
||||
break;
|
||||
|
||||
case 'H':
|
||||
tll_foreach(term->tab_stops, it) {
|
||||
if (it->item >= term->cursor.col) {
|
||||
tll_insert_before(term->tab_stops, it, term->cursor.col);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
tll_push_back(term->tab_stops, term->cursor.col);
|
||||
break;
|
||||
|
||||
case 'M':
|
||||
term_reverse_index(term);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue