Crate better_term

Source

Modules§

input

Macros§

read_input
Returns a string from stdin with the prompt given
yesno_prompt
Works the same way as read_input!() Returns true if the user types ‘y’, ‘Y’, or “yes” to the prompt Returns false if the user types ‘n’, ‘N’, or “no” to the prompt defaults to yes if the user presses enter

Structs§

Style
A way to style output, by setting flags within this struct and then outputting it with (“… {} …”, style)

Enums§

Color
Default ansi colors

Functions§

flush_styles
this will reset all colors and styles in the console for future output