Module terminal

Module terminal 

Source

Re-exports§

pub use args::Args;
pub use args::Error;
pub use args::Help;
pub use io::signer;

Modules§

ansi
A dead simple ANSI terminal color painting library.
args
cell
cob
colors
comment
editor
element
format
highlight
hstack
inquire
inquire is a library for building interactive prompts on terminals.
io
issue
json
label
patch
spinner
table
Print column-aligned text to the console.
textarea
upload_pack
vstack

Macros§

info
notice
success
tip

Structs§

Constraint
Rendering constraint.
DefaultContext
Gets the default profile. Fails if there is no profile.
Editor
Allows for text input in the configured editor.
Filled
An object filled with a background color.
HStack
Horizontal stack of Element objects that implements Element.
Label
A styled string that does not contain any '\n' and implements Element and Cell.
Line
A line of text that has styling and can be displayed.
Paint
A structure encapsulating an item and styling.
Select
Prompt suitable for when you need the user to select one option among many.
Size
Size of a text element, in columns and rows.
Spinner
A progress spinner.
Style
Represents a set of styling options.
Styled
Represents a content that when rendered must have the associated style applied to it.
Table
TableOptions
TextArea
Text area.
VStack
Vertical stack of Element objects that implements Element.
VStackOptions
Options for VStack.

Enums§

Color
An enum representing an ANSI color code.
InputError
Interactive
PaintTarget
Target for paint operations.
TerminalFile

Constants§

PREFIX_ERROR
PREFIX_SUCCESS
PREFIX_WARNING
TAB

Statics§

CONFIG
Render configuration.

Traits§

Command
A command that can be run.
Context
Context passed to all commands.
Element
A text element that has a size and can be rendered to the terminal.

Functions§

abort
ask
blank
blob
columns
confirm
error
fail
header
headline
help
hint
indented
input
Prompts the user for input. If the user cancels the operation, the operation is interrupted, or no suitable terminal is found, then Ok(None) is returned.
label
Create a new label from a Paint object.
manual
notice_args
paint
Shorthand for Paint::new.
passphrase
passphrase_confirm
passphrase_stdin
prefixed
print
println
rows
run_command
run_command_args
run_command_fn
Execute a function cmd that runs a command with parsed the args and a default context.
select
spinner
Create a new spinner with the given message. Sends animation output to stderr and success or failure messages to stdout. This function handles signals, with there being only one element handling signals at a time, and is a wrapper to spinner_to().
spinner_to
Create a new spinner with the given message, and send output to the given writers.
style
subcommand
success_args
textarea
Create a new text area.
tip_args
usage
viewport
warning

Type Aliases§

Passphrase
Passphrase input.