Skip to main content

Crate futtl

Crate futtl 

Source
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
ColorSet
A set of background and foreground colors fg - The foreground color bg - The background color
Container
Container / Box context
Vec2
Vector2 struct that stores an x component and a y component
Win
Main windows context

Enums§

AnsiColor
Represents the colors that can be used by futtl::Color::ANSI()
Color
Color type. Has RGB, Default, ANSI, and ANSI256 modes. Default - Default color ANSI - Default ANSI color code ANSI256 - Default ANSI-256 color code RGB - Any color with Red, Green, and Blue components
CursStyle
Hidden or Visible cursor
InputMode
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 input InputMode::NonBlocking -> Doesn’t wait, returns -1 if no button was pressed.