Expand description
A rusty notcurses wrapper.
Example
use notcurses::*;
fn main() -> Result<()> {
let mut nc = Notcurses::new_cli()?;
let mut cli = nc.cli_plane()?;
cli.putstrln("\nhello world!")?;
cli.render()?;
Ok(())
}
Modules
- Reexport of
libnotcurses-sys.
Macros
- Prints to a plane, similarly as
print!. - Prints to a plane, with a new line, similarly as
println!. - Sleep for a given time with custom precision.
Structs
- The detected current terminal capabilities.
- A pair of both foreground and background
Channels. - A received input.
- A synthesized
Receivedinput event other than achar. - A bitmask of keyboard modifiers.
- A bitmask of mice input events.
- Notcurses state for a given terminal, composed of
Planes. - A
Notcursesbuilder. - An array of 256
Channels. - A drawable text surface, composed of
Cells. - A
Planebuilder. - The geometry of a
Planeor a terminal. - A pair of coordinates.
- A 24-bit RGB value.
- A 32-bit RGBA value.
- A pair of positive lengths.
- Runtime statistics.
- A bitmask of styles.
- A visual bit of multimedia.
- A
Visualbuilder. - The geometry of a
Visual.
Enums
- Alignment within a
Planeor terminal. - Alpha information, part of a
Channel. - Blitter mode to use for rasterizing a
Visual. - The Notcurses error type.
- The type of the
Inputevent. - Stderr log level.
- Pixel blitting implementations, informative only.
- Indicates how to scale a
Visualduring rendering.
Type Definitions
- The Notcurses result type.