diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2021-12-23 17:43:25 +0100 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2021-12-23 17:43:25 +0100 |
commit | 4eca3fdfe2626544da655d0ad8d8a69d7ed18738 (patch) | |
tree | b59292d074f87bdc90838a1298486e4a97c9a714 /src/main.zig | |
parent | 401bb91a64ae517a766be2525a237678666797fb (diff) |
Diffstat (limited to 'src/main.zig')
-rw-r--r-- | src/main.zig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig index fefba0a..56d0dbe 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4,8 +4,13 @@ const nc = @import("notcurses.zig"); pub fn main() anyerror!void { var runtime = nc.init(); var plane = nc.stdplane(runtime); - nc.plane_putchar_yx(plane, 1, 2, 'T'); + nc.plane_set_fg_rgb8(plane, 123, 123, 123); + nc.plane_putchar_yx(plane, 1, 2, 'A'); + + nc.plane_set_fg_rgb8(plane, 13, 23, 255); + nc.plane_putchar_yx(plane, 3, 4, 'B'); while (true) { nc.render(runtime); + std.time.sleep(50); } } |