srctree

Gregory Mullen parent 50c41777 efa465c4
update draw.zig to std import format

src/draw.zig added: 13, removed: 14, total 0
@@ -1,16 +1,3 @@
const std = @import("std");
const Allocator = std.mem.Allocator;
const TTY = @import("tty.zig").TTY;
const ArrayList = std.ArrayList;
const hsh_ = @import("hsh.zig");
const HSH = hsh_.HSH;
const Features = hsh_.Features;
const countPrintable = Layout.countPrintable;
 
pub const Layout = @import("draw/layout.zig");
 
const DrawBuf = ArrayList(u8);
 
alloc: Allocator,
tty: *TTY,
hsh: *HSH,
@@ -23,6 +10,9 @@ after: DrawBuf = undefined,
term_size: Cord = .{},
lines: u16 = 0,
 
pub const Layout = @import("draw/layout.zig");
const DrawBuf = ArrayList(u8);
 
pub const Cord = struct {
x: isize = 0,
y: isize = 0,
@@ -304,3 +294,12 @@ pub fn printAfter(d: *const Drawable, comptime c: []const u8, a: anytype) !void
_ = try w.write("\x1B[A");
_ = try w.write("\r");
}
 
const std = @import("std");
const Allocator = std.mem.Allocator;
const TTY = @import("tty.zig").TTY;
const ArrayList = std.ArrayList;
const hsh_ = @import("hsh.zig");
const HSH = hsh_.HSH;
const Features = hsh_.Features;
const countPrintable = Layout.countPrintable;