terminal: Screen opts is a structure

This commit is contained in:
Mitchell Hashimoto
2025-11-14 13:19:16 -08:00
parent a5a914c2b8
commit 368f4f565a
10 changed files with 282 additions and 264 deletions

View File

@@ -109,7 +109,7 @@ test "StringMap searchIterator" {
defer re.deinit();
// Initialize our screen
var s = try Screen.init(alloc, 5, 5, 0);
var s = try Screen.init(alloc, .{ .cols = 5, .rows = 5, .max_scrollback = 0 });
defer s.deinit();
const str = "1ABCD2EFGH\n3IJKL";
try s.testWriteString(str);