From 401bb91a64ae517a766be2525a237678666797fb Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Mon, 20 Dec 2021 18:19:19 +0100 Subject: setup --- src/main.zig | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index a93a524..fefba0a 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1,6 +1,11 @@ const std = @import("std"); -const notcurses = @import("notcurses.zig"); +const nc = @import("notcurses.zig"); pub fn main() anyerror!void { - var nc = notcurses.init(); + var runtime = nc.init(); + var plane = nc.stdplane(runtime); + nc.plane_putchar_yx(plane, 1, 2, 'T'); + while (true) { + nc.render(runtime); + } } -- cgit v1.2.3