Crate nobody

Source

Re-exports§

pub use constants::*;

Modules§

constants
show

Macros§

header
Header macro
log
logi
log! macro log!(“starting”,“server”); //prints “starting” and “server” in different colors automatically can handle any number of arguments and any type that implements Display. automatically colors the arguments in different colors based on number of arguments and words in the arguments eg. log!(“starting”,“server”) will print “starting” in yellow and “server” in white since starting is an ongoing action and server is a noun log!(“started”,“server”) will print “started” in green and “server” in white since started is a completed action and server is a noun log!(“starting”,“server”,“on”,“port”,“8080”) will print “starting” in yellow, “server” in white, “on” in gray, “port” in white and “8080” in cyan
paragraph
paragraph! macro same like showln! but automatically chops the text and wraps it in a paragraph. the width of the paragraph is 65 characters by default. when the text is longer than 65 characters, it is wrapped in a paragraph
render
render! macro same like showln! but automatically chops the text and wraps it in a paragraph. the width of the paragraph is 65 characters by default. when the text is longer than 65 characters, it is wrapped in a paragraph
show
showln

Structs§

CStyle
CStyleSequence
CStyleSequence a sequence of CStyle
Choice
! # noui ! terminal ui library combining alot of things from here and there ! and making it slightly easier to play with ! below are the key functionalities provided by this library

Enums§

Key
Key a key that can be pressed

Constants§

BOX_CROSS
BOX_HORIZONTAL
BOX_HORIZONTAL_SPLIT_BOTTOM
BOX_HORIZONTAL_SPLIT_TOP
BOX_LEFT_BOTTOM
BOX_LEFT_TOP
BOX_RIGHT_BOTTOM
BOX_RIGHT_TOP
BOX_ROUND_BOTTOM_LEFT
BOX_ROUND_BOTTOM_RIGHT
BOX_ROUND_TOP_LEFT
BOX_ROUND_TOP_RIGHT
BOX_VERTICAL
BOX_VERTICAL_SPLIT_LEFT
BOX_VERTICAL_SPLIT_RIGHT
DEFAULT_PARAGRAPH_WIDTH
blink
blue
blue_bold
blue_dim
bluebg
bold
cyan
cyan_bold
cyan_dim
cyanbg
debug
dim
error
gray
gray_bold
gray_dim
graybg
green
green_bold
green_dim
greenbg
info
italic
magenta
magenta_bold
magenta_dim
magentabg
muted
nostyle
orange
orange_bold
orange_dim
orangebg
pink
pink_bold
pink_dim
pinkbg
purple
purple_bold
purple_dim
purplebg
red
red_bold
red_dim
redbg
reset
success
underline
warning
white
white_bold
white_dim
whitebg
yellow
yellow_bold
yellow_dim
yellowbg

Traits§

Pickable
Pickable a trait that can be used to implement a pickable item
Printable
Printable

Functions§

as_debug
as_error
as_info
as_success
as_warning
ask_for_selection
show selection picker ask for selection interactively ask for a selection from a list of options user can type in a number or press up/down arrows to select and press enter to confirm user can also type in a term to filter options by that term press esc to break out of the loop
create_new
disable_raw_mode
disable raw mode disable raw mode on stdin (no external dependencies)
display_help
display_options
divider
enable_raw_mode
enable raw mode enable raw mode on stdin (no external dependencies)
execution_loop
get_key
get_key get the next key from stdin
get_options
handle_args
in_blink
in_blue
in_bold
in_cyan
in_dim
in_gray
in_green
in_italic
in_magenta
in_orange
in_pink
in_purple
in_red
in_underline
in_white
in_yellow
on_blue
on_cyan
on_gray
on_green
on_magenta
on_orange
on_pink
on_purple
on_red
on_white
on_yellow
reset_line
run_script
show_banner
subtle
vibrant
with_nostyle
wrap