ncurses-rs 0.0.3

a rustacean version of the ncurses api
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use ::context::Context;

#[link(name="ncurses")]
extern {
    fn mvwaddch(ptr: *const u64, y: u64, x: u64, c: u8);

}

pub fn print_char(x: u64, y: u64, win: String, c: char, context: &mut Context)
{
    unsafe { mvwaddch(context.win.get(&win).unwrap().ptr, y, x, c as u8); } 
}