You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
470 B
Rust
23 lines
470 B
Rust
4 years ago
|
//! based on the proof of concept at ../../src/poc/kittyzapper.c
|
||
|
|
||
|
use libnotcurses_sys::*;
|
||
|
|
||
|
fn main() {
|
||
|
let ncd = NcDirect::new();
|
||
|
ncd.fg_rgb8(100, 100, 100);
|
||
|
ncd.bg_rgb8(0xff, 0xff, 0xff);
|
||
|
printf!("a");
|
||
|
ncd.bg_rgb8(0, 0, 0);
|
||
|
printf!("b");
|
||
|
printf!(" ");
|
||
|
printf!(" ");
|
||
|
ncd.bg_rgb8(0, 0, 1);
|
||
|
printf!("c");
|
||
|
printf!(" ");
|
||
|
printf!(" ");
|
||
|
ncd.bg_rgb8(0xff, 0xff, 0xff);
|
||
|
printf!("d");
|
||
|
printf!("\n");
|
||
|
ncd.stop();
|
||
|
}
|