terminal doesn't need parser anymore

This commit is contained in:
Mitchell Hashimoto
2022-05-10 19:34:14 -07:00
parent e26352529e
commit 46d160cfdd

View File

@ -10,7 +10,6 @@ const testing = std.testing;
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const ansi = @import("ansi.zig"); const ansi = @import("ansi.zig");
const csi = @import("csi.zig"); const csi = @import("csi.zig");
const Parser = @import("Parser.zig");
const Tabstops = @import("Tabstops.zig"); const Tabstops = @import("Tabstops.zig");
const trace = @import("../tracy/tracy.zig").trace; const trace = @import("../tracy/tracy.zig").trace;
@ -29,9 +28,6 @@ tabstops: Tabstops,
rows: usize, rows: usize,
cols: usize, cols: usize,
/// VT stream parser
parser: Parser,
/// Screen represents a presentable terminal screen made up of lines and cells. /// Screen represents a presentable terminal screen made up of lines and cells.
const Screen = std.ArrayListUnmanaged(Line); const Screen = std.ArrayListUnmanaged(Line);
const Line = std.ArrayListUnmanaged(Cell); const Line = std.ArrayListUnmanaged(Cell);
@ -68,7 +64,6 @@ pub fn init(alloc: Allocator, cols: usize, rows: usize) !Terminal {
.screen = .{}, .screen = .{},
.cursor = .{ .x = 0, .y = 0 }, .cursor = .{ .x = 0, .y = 0 },
.tabstops = try Tabstops.init(alloc, cols, 8), .tabstops = try Tabstops.init(alloc, cols, 8),
.parser = Parser.init(),
}; };
} }