summaryrefslogtreecommitdiff
path: root/src/main.zig
blob: 56d0dbef90f4768a4e9dbd7682796af18822a73d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const std = @import("std");
const nc = @import("notcurses.zig");

pub fn main() anyerror!void {
    var runtime = nc.init();
    var plane = nc.stdplane(runtime);
    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);
    }
}