mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-01 07:15:32 -04:00
term: reset: set 'origin' to ORIGIN_ABSOLUTE
This commit is contained in:
parent
8274e3e034
commit
a81c65caa2
1 changed files with 1 additions and 0 deletions
|
|
@ -857,6 +857,7 @@ term_reset(struct terminal *term, bool hard)
|
||||||
term->colors.bg = term->colors.default_bg;
|
term->colors.bg = term->colors.default_bg;
|
||||||
for (size_t i = 0; i < 256; i++)
|
for (size_t i = 0; i < 256; i++)
|
||||||
term->colors.table[i] = term->colors.default_table[i];
|
term->colors.table[i] = term->colors.default_table[i];
|
||||||
|
term->origin = ORIGIN_ABSOLUTE;
|
||||||
term->cursor.lcf = false;
|
term->cursor.lcf = false;
|
||||||
term->cursor = (struct cursor){.point = {0, 0}};
|
term->cursor = (struct cursor){.point = {0, 0}};
|
||||||
term->saved_cursor = (struct cursor){.point = {0, 0}};
|
term->saved_cursor = (struct cursor){.point = {0, 0}};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue