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

@ -12,6 +12,7 @@ gutter_width_minimum: usize = 4,
gutter_width_maximum: usize = 8,
enable_terminal_cursor: bool = true,
enable_terminal_color_scheme: bool = false,
terminal_scrollback_size: u16 = 500,
enable_sgr_pixel_mode_support: bool = true,
enable_modal_dim: bool = true,
highlight_current_line: bool = true,

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;