mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
vt: implement save/restore cursor+attributes
This commit is contained in:
parent
aad4db29c2
commit
cb10d10fd8
2 changed files with 11 additions and 0 deletions
10
vt.c
10
vt.c
|
|
@ -567,6 +567,16 @@ esc_dispatch(struct terminal *term, uint8_t final)
|
|||
#endif
|
||||
|
||||
switch (final) {
|
||||
case '7':
|
||||
term->saved_cursor = term->cursor;
|
||||
term->vt.saved_attrs = term->vt.attrs;
|
||||
break;
|
||||
|
||||
case '8':
|
||||
term->cursor = term->saved_cursor;
|
||||
term->vt.attrs = term->vt.saved_attrs;
|
||||
break;
|
||||
|
||||
case 'B': {
|
||||
/* Configure G0-G3 to use ASCII */
|
||||
char param = term->vt.params.idx > 0 ? term->vt.params.v[0].value : '(';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue