summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2021-12-20 18:19:19 +0100
committerTom Barrett <tom@tombarrett.xyz>2021-12-20 18:19:19 +0100
commit401bb91a64ae517a766be2525a237678666797fb (patch)
tree18b236253da5732d1c02fc58ea1056b5c6677a8b /src/main.zig
parent83c27ccc818df03c906ddc90357b99fddbfafbc0 (diff)
setup
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig9
1 files changed, 7 insertions, 2 deletions
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);
+ }
}