mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-28 15:55:20 +00:00
terminal: update parser to use new color parser and stream handler
This commit is contained in:
@@ -915,15 +915,15 @@ test "osc: 112 incomplete sequence" {
|
||||
const cmd = a[0].?.osc_dispatch;
|
||||
try testing.expect(cmd == .color_operation);
|
||||
try testing.expectEqual(cmd.color_operation.terminator, .bel);
|
||||
try testing.expect(cmd.color_operation.source == .reset_cursor);
|
||||
try testing.expect(cmd.color_operation.operations.count() == 1);
|
||||
var it = cmd.color_operation.operations.constIterator(0);
|
||||
try testing.expect(cmd.color_operation.op == .osc_112);
|
||||
try testing.expect(cmd.color_operation.requests.count() == 1);
|
||||
var it = cmd.color_operation.requests.constIterator(0);
|
||||
{
|
||||
const op = it.next().?;
|
||||
try testing.expect(op.* == .reset);
|
||||
try testing.expectEqual(
|
||||
osc.Command.ColorOperation.Kind.cursor,
|
||||
op.reset,
|
||||
osc.color.Request{ .reset = .{ .dynamic = .cursor } },
|
||||
op.*,
|
||||
);
|
||||
}
|
||||
try std.testing.expect(it.next() == null);
|
||||
|
||||
Reference in New Issue
Block a user