Expand description
A rusty notcurses wrapper.
§Example
use notcurses::*;
fn main() -> NotcursesResult<()> {
let nc = Notcurses::new_cli()?;
let mut cli = nc.cli_plane()?;
cli.putstrln("\nhello world!")?;
cli.render()?;
Ok(())
}
Modules§
- sys
- Reexport of
libnotcurses-sys
.
Macros§
- putstr
- Prints to a plane, similarly as
print!
. - putstrln
- Prints to a plane, with a new line, similarly as
println!
.
Structs§
- Capabilities
- The detected current terminal capabilities.
- Cell
- A
Cell
corresponds to a single grapheme cluster on somePlane
, - Channel
- The
Rgb
+Alpha
of aCell
’s background or foreground. - Channels
- A pair of both foreground and background
Channel
s. - Input
- A received input.
- Key
- A synthesized
Received
input event other than achar
. - KeyMod
- A bitmask of keyboard modifiers.
- Mice
Events - A bitmask of mice input events.
- Notcurses
- Notcurses state for a given terminal, composed of
Plane
s. - Notcurses
Builder - A
Notcurses
builder. - Palette
- An array of 256
Channel
s. - Plane
- A drawable text surface, composed of
Cell
s. - Plane
Builder - A
Plane
builder. - Plane
Geometry - The geometry of a
Plane
or a terminal. - Position
- A 2D position using a clamped
i32
. - Rgb
- A 24-bit RGB value.
- Rgba
- A 32-bit RGBA value.
- Size
- A 2D size using a positive clamped
i32
. - Statistics
- Runtime statistics.
- Style
- A bitmask of styles.
- Visual
- A visual bit of multimedia.
- Visual
Builder - A
Visual
builder. - Visual
Geometry - The geometry of a
Visual
. - Visual
Options - The inner options of a
Visual
.
Enums§
- Align
- Alignment within a
Plane
or terminal. - Alpha
- Alpha information, part of a
Channel
. - Blitter
- Blitter mode to use for rasterizing a
Visual
. - Input
Type - The type of the
Input
event. - LogLevel
- Stderr log level.
- Notcurses
Error - The Notcurses error type.
- Pixel
Implementation - Pixel blitting implementations, informative only.
- Received
- A received
char
orKey
. - Scale
- Indicates how to scale a
Visual
during rendering.
Type Aliases§
- Notcurses
Result - The Notcurses result type.