Expand description
A TUI library that’s supposed to resemble something between ncurses and Ratatui-core
Structs§
- Attr
- Attributes that modify cells with different styles. Can be combined with the or (‘|’) operator for multiple attributes on the same cell
- Color
Set - A set of background and foreground colors
fg- The foreground colorbg- The background color - Container
- Container / Box context
- Vec2
- Vector2 struct that stores an x component and a y component
- Win
- Main windows context
Enums§
- Ansi
Color - Represents the colors that can be used by futtl::Color::ANSI()
- Color
- Color type. Has RGB, Default, ANSI, and ANSI256 modes.
Default- Default colorANSI- Default ANSI color codeANSI256- Default ANSI-256 color codeRGB- Any color with Red, Green, and Blue components - Curs
Style - Hidden or Visible cursor
- Input
Mode - Blocking or Non-Blocking input modes for the keyboard
- Key
- Keys that aren’t one-byte, but also not unicode
Traits§
- Futtl
- Internal trait implementing the core of both Win and Container
Functions§
- flush
- Flushes the screen
- set_
input_ blocking - Sets the input mode
InputMode::Blocking-> Waits for terminal inputInputMode::NonBlocking-> Doesn’t wait, returns -1 if no button was pressed.