mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-26 06:46:45 -04:00
terminal: track whether the scrollback is limited
The terminal will have an unlimited scrollback mode where new memory is allocated when it is filled up.
This commit is contained in:
parent
5e344d2b86
commit
297b5c4734
2 changed files with 2 additions and 0 deletions
|
|
@ -1266,6 +1266,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
|
||||||
.queue = tll_init(),
|
.queue = tll_init(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
.unlimited_scrollback = conf->scrollback.unlimited,
|
||||||
.delayed_render_timer = {
|
.delayed_render_timer = {
|
||||||
.is_armed = false,
|
.is_armed = false,
|
||||||
.lower_fd = delay_lower_fd,
|
.lower_fd = delay_lower_fd,
|
||||||
|
|
|
||||||
|
|
@ -370,6 +370,7 @@ struct terminal {
|
||||||
int cols; /* number of columns */
|
int cols; /* number of columns */
|
||||||
int rows; /* number of rows */
|
int rows; /* number of rows */
|
||||||
struct scroll_region scroll_region;
|
struct scroll_region scroll_region;
|
||||||
|
bool unlimited_scrollback;
|
||||||
|
|
||||||
struct charsets charsets;
|
struct charsets charsets;
|
||||||
struct charsets saved_charsets; /* For save/restore cursor + attributes */
|
struct charsets saved_charsets; /* For save/restore cursor + attributes */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue