mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-06 01:40:22 -05:00
term/vt/csi: break out cursor save/restore to dedicated functions
This commit is contained in:
parent
c0a3f89775
commit
bae3c871bb
4 changed files with 15 additions and 10 deletions
6
csi.c
6
csi.c
|
|
@ -1141,15 +1141,11 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
}
|
||||
|
||||
case 's':
|
||||
term->grid->saved_cursor = term->grid->cursor;
|
||||
term->vt.saved_attrs = term->vt.attrs;
|
||||
term->saved_charsets = term->charsets;
|
||||
term_save_cursor(term);
|
||||
break;
|
||||
|
||||
case 'u':
|
||||
term_restore_cursor(term, &term->grid->saved_cursor);
|
||||
term->vt.attrs = term->vt.saved_attrs;
|
||||
term->charsets = term->saved_charsets;
|
||||
break;
|
||||
|
||||
case 't': {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue