mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
rust: fix .gitignore; remove issue example
- make .gitignore just ignore the *root* build dir - remove unneeded rust/.gitignore - remove no longer needed issue-rgba.rs
This commit is contained in:
parent
1f67f540e6
commit
66d4f323e8
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
||||
build/
|
||||
/build/
|
||||
doc/examples/book
|
||||
obj-x86_64-linux-gnu
|
||||
python/.eggs/
|
||||
|
1
rust/.gitignore
vendored
1
rust/.gitignore
vendored
@ -1 +0,0 @@
|
||||
examples/*.c
|
@ -1,20 +0,0 @@
|
||||
use libnotcurses_sys::*;
|
||||
|
||||
fn main() -> NcResult<()> {
|
||||
let mut nc = FullMode::new()?;
|
||||
let stdplane = nc.stdplane();
|
||||
|
||||
let plane = NcPlane::new_bound(stdplane, 0, 0, 2, 5)?;
|
||||
plane.set_base("·", 0, NcChannelPair::with_rgb(0x224411, 0x229922))?;
|
||||
|
||||
// BUG FIXME: uncommenting this makes next as_rgba() call fail
|
||||
// plane.putstr("PLANE")?;
|
||||
|
||||
rsleep![&mut nc, 0, 500];
|
||||
|
||||
let rgba = plane.as_rgba(NCBLIT_1x1, 0, 0, None, None)?;
|
||||
println!("\n\n array: {:#?}", rgba);
|
||||
|
||||
rsleep![&mut nc, 3];
|
||||
Ok(())
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user