mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-25 06:46:36 -04:00
config: add unlimited scrollback option
Adds a boolean configuration option for expanding the scrollback memory the output grows.
This commit is contained in:
parent
ed5717c4cd
commit
5e344d2b86
2 changed files with 4 additions and 0 deletions
3
config.c
3
config.c
|
|
@ -1092,6 +1092,9 @@ parse_section_scrollback(struct context *ctx)
|
||||||
if (streq(key, "lines"))
|
if (streq(key, "lines"))
|
||||||
return value_to_uint32(ctx, 10, &conf->scrollback.lines);
|
return value_to_uint32(ctx, 10, &conf->scrollback.lines);
|
||||||
|
|
||||||
|
else if (streq(key, "unlimited"))
|
||||||
|
return value_to_bool(ctx, &conf->scrollback.unlimited);
|
||||||
|
|
||||||
else if (streq(key, "indicator-position")) {
|
else if (streq(key, "indicator-position")) {
|
||||||
_Static_assert(
|
_Static_assert(
|
||||||
sizeof(conf->scrollback.indicator.position) == sizeof(int),
|
sizeof(conf->scrollback.indicator.position) == sizeof(int),
|
||||||
|
|
|
||||||
1
config.h
1
config.h
|
|
@ -175,6 +175,7 @@ struct config {
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
uint32_t lines;
|
uint32_t lines;
|
||||||
|
bool unlimited;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
enum {
|
enum {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue