refactor(terminal): add scrollback size configuration option
This commit is contained in:
parent
3e265dade5
commit
f88f779410
2 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ gutter_width_minimum: usize = 4,
|
||||||
gutter_width_maximum: usize = 8,
|
gutter_width_maximum: usize = 8,
|
||||||
enable_terminal_cursor: bool = true,
|
enable_terminal_cursor: bool = true,
|
||||||
enable_terminal_color_scheme: bool = false,
|
enable_terminal_color_scheme: bool = false,
|
||||||
|
terminal_scrollback_size: u16 = 500,
|
||||||
enable_sgr_pixel_mode_support: bool = true,
|
enable_sgr_pixel_mode_support: bool = true,
|
||||||
enable_modal_dim: bool = true,
|
enable_modal_dim: bool = true,
|
||||||
highlight_current_line: bool = true,
|
highlight_current_line: bool = true,
|
||||||
|
|
|
||||||
|
|
@ -264,7 +264,7 @@ const Vt = struct {
|
||||||
&env,
|
&env,
|
||||||
.{
|
.{
|
||||||
.winsize = .{ .rows = rows, .cols = cols, .x_pixel = 0, .y_pixel = 0 },
|
.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: {
|
.initial_working_directory = blk: {
|
||||||
const project = tp.env.get().str("project");
|
const project = tp.env.get().str("project");
|
||||||
break :blk if (project.len > 0) project else home;
|
break :blk if (project.len > 0) project else home;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue