Helpers for Developing Command Line Interfaces
ANSI colored text
Align an ANSI colored string
Collapse a vector into a string scalar
Format a character vector in multiple columns
Like base::grep()
and base::grepl()
, but for ANSI strings
Check if a string has some ANSI styling
Hide/show cursor in a terminal
Convert ANSI styled text to HTML
CSS styles for the output of ansi_html()
Count number of characters in an ANSI colored string
Like base::nzchar()
, but for ANSI strings
ANSI colors palettes
Perl compatible regular expression that matches ANSI escape sequences
Simplify ANSI styling tags
Labels a character vector as containing ANSI control codes.
Remove ANSI escape sequences from a string
Split an ANSI colored string
Truncate an ANSI string
Wrap an ANSI styled string to a certain width
Substring(s) of an ANSI colored string
Substring(s) of an ANSI colored string
ANSI character translation and case folding
Remove leading and/or trailing whitespace from an ANSI string
Draw a banner-like box in the console
The built-in CLI theme
cat()
helpers
cli environment variables and options
cli: Helpers for Developing Command Line Interfaces
Compose multiple cli functions
Signal an error, warning or message with a cli formatted message
CLI alerts
CLI block quote
CLI headings
List of items
List of verbatim items
A block of code
Debug cli internals
Generic CLI container
Definition list
Close a CLI container
Capture the output of cli functions instead of printing it
Format a value for printing
Create a format method for an object using cli tools
CLI list item(s)
List the currently active themes
Ordered CLI list
The connection option that cli would use
CLI paragraph
Indicate the start and termination of some computation in the status b...
Add a progress bar to a mapping function or for loop
cli progress bars
cli progress handlers
cli progress bar demo
Simplified cli progress messages
Add text output to a progress bar
SHA-1 hash
Simplified cli progress messages, with styling
List of built-in cli progress styles
CLI horizontal rule
cli situation report
Determine the width of the console
Update the status bar (superseded)
Clear the status bar (superseded)
Update the status bar (superseded)
CLI text
Unordered CLI list
Add custom cli style to a vector
CLI verbatim text
Syntax highlight R code
Syntax highlighting themes
Combine two or more ANSI styles
About cli containers
Show a demo of some (by default all) spinners
Compare two character vectors elementwise
Compare two character strings, character by character
Frequently Asked Questions
Format an error, warning or diagnostic message
Format and returns a line of text
Character vector to put a spinner on the screen
Check if the current platform/terminal supports reading single keys.
Adjective-animal hash
Emoji hash
MD5 hash
SHA-256 hash
About inline markup in the semantic cli
Detect if a stream support ANSI escape characters
Detect whether a stream supports \\r
(Carriage return)
Whether cli is emitting UTF-8 characters
Read a single keypress at the terminal
cli hyperlinks
List all available spinners
Create a new ANSI style
Create a spinner
Match a selector to a container stack
Match a selector node to a container
Detect the number of ANSI colors to use
Parse a CSS3-like selector
Pluralization helper functions
About cli pluralization
String templating with pluralization
Turn on pretty-printing functions at the R console
The cli progress C API
Progress bar utility functions.
Progress bar variables
Make a rule with one or two text labels
Print the helpful ruler to the screen
A simple CLI theme
Draw a sparkline bar graph with unicode block characters
Draw a sparkline line graph with Braille characters.
Start, stop, query the default cli application
Terminal Hyperlinks
Various handy symbols to use in a command line UI
Test cli output with testthat
About cli themes
Draw a tree
Working around the bad Unicode character widths
Break an UTF-8 character vector into grapheme clusters
Count the number of characters in a character vector
Substring of an UTF-8 string
Simulate (a subset of) a VT-5xx ANSI terminal
A suite of tools to build attractive command line interfaces ('CLIs'), from semantic elements: headings, lists, alerts, paragraphs, etc. Supports custom themes via a 'CSS'-like language. It also contains a number of lower level 'CLI' elements: rules, boxes, trees, and 'Unicode' symbols with 'ASCII' alternatives. It support ANSI colors and text styles as well.