refactor(terminal): add scrollback size configuration option

This commit is contained in:
CJ van den Berg 2026-02-25 20:33:41 +01:00
parent 3e265dade5
commit f88f779410
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 2 additions and 1 deletions

View file

@ -264,7 +264,7 @@ const Vt = struct {
&env,
.{
.winsize = .{ .rows = rows, .cols = cols, .x_pixel = 0, .y_pixel = 0 },
.scrollback_size = 0,
.scrollback_size = tui.config().terminal_scrollback_size,
.initial_working_directory = blk: {
const project = tp.env.get().str("project");
break :blk if (project.len > 0) project else home;