mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-28 10:01:38 +00:00
core: configurable scrollback limit
This commit is contained in:
@@ -63,7 +63,7 @@ pub fn cursorStyle(
|
||||
test "cursor: default uses configured style" {
|
||||
const testing = std.testing;
|
||||
const alloc = testing.allocator;
|
||||
var term = try terminal.Terminal.init(alloc, 10, 10);
|
||||
var term = try terminal.Terminal.init(alloc, .{ .cols = 10, .rows = 10 });
|
||||
defer term.deinit(alloc);
|
||||
|
||||
term.screen.cursor.cursor_style = .bar;
|
||||
@@ -84,7 +84,7 @@ test "cursor: default uses configured style" {
|
||||
test "cursor: blinking disabled" {
|
||||
const testing = std.testing;
|
||||
const alloc = testing.allocator;
|
||||
var term = try terminal.Terminal.init(alloc, 10, 10);
|
||||
var term = try terminal.Terminal.init(alloc, .{ .cols = 10, .rows = 10 });
|
||||
defer term.deinit(alloc);
|
||||
|
||||
term.screen.cursor.cursor_style = .bar;
|
||||
@@ -105,7 +105,7 @@ test "cursor: blinking disabled" {
|
||||
test "cursor: explictly not visible" {
|
||||
const testing = std.testing;
|
||||
const alloc = testing.allocator;
|
||||
var term = try terminal.Terminal.init(alloc, 10, 10);
|
||||
var term = try terminal.Terminal.init(alloc, .{ .cols = 10, .rows = 10 });
|
||||
defer term.deinit(alloc);
|
||||
|
||||
term.screen.cursor.cursor_style = .bar;
|
||||
@@ -127,7 +127,7 @@ test "cursor: explictly not visible" {
|
||||
test "cursor: always block with preedit" {
|
||||
const testing = std.testing;
|
||||
const alloc = testing.allocator;
|
||||
var term = try terminal.Terminal.init(alloc, 10, 10);
|
||||
var term = try terminal.Terminal.init(alloc, .{ .cols = 10, .rows = 10 });
|
||||
defer term.deinit(alloc);
|
||||
|
||||
var state: State = .{
|
||||
|
||||
Reference in New Issue
Block a user