blob: b06775d9df14a31313c772ac3712199f69f689e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//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);
}
pub fn plane_set_fg_rgb8(plane: ?*nc.ncplane, r: u8, g: u8, b: u8) void {
var ret = nc.ncplane_set_fg_rgb8(plane, r, g, b);
}
|