Terminal
Functions for printing styled text to the terminal.
Use functions like print and println instead of kotlin.io.println to automatically downsample any TextColors and TextStyles you use in strings, and to render widgets like table and HorizontalRule.
The default constructor for this class will detect the current terminal capabilities, but you can override this detection by passing your desired value for ansiLevel
, hyperlinks
, and interactive
.
Constructors
Properties
Functions
Print a line styled with the theme's danger style.
Print a line styled with the theme's info style.
Print a line styled with the theme's muted style.
Print a widget to the terminal.
Print a message to the terminal.
Print a line break to the terminal.
Print a widget to the terminal, followed by a line break.
Print a message to the terminal, followed by a line break.
Print a prompt to the user and return the value they enter.
Read a line of input from stdin.
Print a line styled with the theme's success style.
Print a line styled with the theme's warning style.