blob: 2adba419e0dc9d014ee1aae6c9bbe4b6057b8b68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//const std = @import("std");
const nc = @cImport(@cInclude("notcurses/notcurses.h"));
pub fn init() ?*nc.notcurses {
return nc.notcurses_init(null, null);
}
pub fn stdplane(runtime: ?*nc.notcurses) ?*nc.ncplane {
return nc.notcurses_stdplane(runtime);
}
pub fn plane_putchar_yx(plane: ?*nc.ncplane, y: u8, x: u8, c: u8) void {
var ret = nc.ncplane_putchar_yx(plane, y, x, c);
}
pub fn render(runtime: ?*nc.notcurses) void {
var ret = nc.notcurses_render(runtime);
}
|