aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/renderer/cursor.zig
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-10 21:51:57 +0300
committerGitHub <noreply@github.com>2026-09-10 21:51:57 +0300
commit425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch)
treee52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/renderer/cursor.zig
parent90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff)
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/renderer/cursor.zig')
-rw-r--r--vendor/libghostty-vt/src/renderer/cursor.zig12
1 files changed, 8 insertions, 4 deletions
diff --git a/vendor/libghostty-vt/src/renderer/cursor.zig b/vendor/libghostty-vt/src/renderer/cursor.zig
index 33992bc5..3314db29 100644
--- a/vendor/libghostty-vt/src/renderer/cursor.zig
+++ b/vendor/libghostty-vt/src/renderer/cursor.zig
@@ -70,7 +70,8 @@ pub fn style(
test "cursor: default uses configured style" {
const testing = std.testing;
const alloc = testing.allocator;
- var term: terminal.Terminal = try .init(alloc, .{ .cols = 10, .rows = 10 });
+ const io = testing.io;
+ var term: terminal.Terminal = try .init(io, alloc, .{ .cols = 10, .rows = 10 });
defer term.deinit(alloc);
term.screens.active.cursor.cursor_style = .bar;
@@ -89,7 +90,8 @@ 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, .{ .cols = 10, .rows = 10 });
+ const io = testing.io;
+ var term = try terminal.Terminal.init(io, alloc, .{ .cols = 10, .rows = 10 });
defer term.deinit(alloc);
term.screens.active.cursor.cursor_style = .bar;
@@ -108,7 +110,8 @@ test "cursor: blinking disabled" {
test "cursor: explicitly not visible" {
const testing = std.testing;
const alloc = testing.allocator;
- var term = try terminal.Terminal.init(alloc, .{ .cols = 10, .rows = 10 });
+ const io = testing.io;
+ var term = try terminal.Terminal.init(io, alloc, .{ .cols = 10, .rows = 10 });
defer term.deinit(alloc);
term.screens.active.cursor.cursor_style = .bar;
@@ -128,7 +131,8 @@ test "cursor: explicitly not visible" {
test "cursor: always block with preedit" {
const testing = std.testing;
const alloc = testing.allocator;
- var term = try terminal.Terminal.init(alloc, .{ .cols = 10, .rows = 10 });
+ const io = testing.io;
+ var term = try terminal.Terminal.init(io, alloc, .{ .cols = 10, .rows = 10 });
defer term.deinit(alloc);
var state: terminal.RenderState = .empty;