mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-16 22:05:21 -05:00
term: reset sixel options when hard resetting the terminal state
This commit is contained in:
parent
aa4c7c5a30
commit
32d9895697
2 changed files with 12 additions and 0 deletions
|
|
@ -68,6 +68,8 @@
|
|||
scrollback search mode ([#1036][1036]).
|
||||
* Scrollback search mode not always highlighting all matches
|
||||
correctly.
|
||||
* Sixel options not being reset on hard resets (`\Ec`)
|
||||
|
||||
|
||||
[1040]: https://codeberg.org/dnkl/foot/issues/1040
|
||||
[1036]: https://codeberg.org/dnkl/foot/issues/1036
|
||||
|
|
|
|||
10
terminal.c
10
terminal.c
|
|
@ -1929,6 +1929,16 @@ term_reset(struct terminal *term, bool hard)
|
|||
tll_free(term->alt.scroll_damage);
|
||||
term->render.last_cursor.row = NULL;
|
||||
term_damage_all(term);
|
||||
|
||||
term->sixel.scrolling = true;
|
||||
term->sixel.cursor_right_of_graphics = false;
|
||||
term->sixel.use_private_palette = true;
|
||||
term->sixel.max_width = SIXEL_MAX_WIDTH;
|
||||
term->sixel.max_height = SIXEL_MAX_HEIGHT;
|
||||
term->sixel.palette_size = SIXEL_MAX_COLORS;
|
||||
free(term->sixel.private_palette);
|
||||
free(term->sixel.shared_palette);
|
||||
term->sixel.private_palette = term->sixel.shared_palette = NULL;
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue