IntroductionTo learn how to use cli’s semantic markup, start with the ‘Building a semantic CLI’ vignette. More detailed summaries about various cli topics: |
|
---|---|
About inline markup in the semantic cli |
|
cli hyperlinks |
|
About cli containers |
|
About cli themes |
|
About cli pluralization |
|
Semantic CLI Elements |
|
Compose multiple cli functions |
|
|
CLI alerts |
CLI block quote |
|
List of items |
|
List of verbatim items |
|
A block of code |
|
Generic CLI container |
|
Definition list |
|
Close a CLI container |
|
Format a value for printing |
|
CLI headings |
|
CLI list item(s) |
|
Ordered CLI list |
|
CLI paragraph |
|
CLI horizontal rule |
|
CLI text |
|
Unordered CLI list |
|
Add custom cli style to a vector |
|
CLI verbatim text |
|
Format and returns a line of text |
|
Themes |
|
About cli themes |
|
The built-in CLI theme |
|
A simple CLI theme |
|
List the currently active themes |
|
Pluralizationcli has tools to create messages that are printed correctly in singular and plural forms. See the ‘Pluralization’ article for an introduction. |
|
String templating with pluralization |
|
Pluralization helper functions |
|
Progress barscli progress bars work well with other bits of the semantic cli API. See the ‘Introduction to Progress Bars in cli’ article for an introduction, and the ‘Advanced cli Progress Bars’ article for more advanced topics. |
|
Create and update progress bars |
|
Add a progress bar to a mapping function or for loop |
|
|
cli progress bars |
Simplified cli progress messages |
|
Add text output to a progress bar |
|
Simplified cli progress messages, with styling |
|
|
Progress bar variables |
Progress bars in C/C++ |
|
The cli progress C API |
|
Progress bar utilities |
|
cli progress handlers |
|
cli progress bar demo |
|
List of built-in cli progress styles |
|
Progress bar utility functions. |
|
Terminal Colors and Styles |
|
ANSI colors palettes |
|
Detect the number of ANSI colors to use |
|
|
ANSI colored text |
|
Terminal Hyperlinks |
Combine two or more ANSI styles |
|
Create a new ANSI style |
|
ANSI and/or UTF-8 String Manipulation |
|
Align an ANSI colored string |
|
Collapse a vector into a string scalar |
|
Format a character vector in multiple columns |
|
Like |
|
Check if a string has some ANSI styling |
|
Convert ANSI styled text to HTML |
|
CSS styles for the output of |
|
Count number of characters in an ANSI colored string |
|
Like |
|
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 |
|
Break an UTF-8 character vector into grapheme clusters |
|
Count the number of characters in a character vector |
|
Substring of an UTF-8 string |
|
Format and signal errors with cli formatting |
|
Signal an error, warning or message with a cli formatted message |
|
Format an error, warning or diagnostic message |
|
Rules, Boxes, Trees, Spinners, etc.This section documents cli functions that create various non-semantic cli output. See the ‘Rules, Boxes and Trees’ article for a quick overiew of most of them. |
|
Draw a banner-like box in the console |
|
Show a demo of some (by default all) spinners |
|
Character vector to put a spinner on the screen |
|
List all available spinners |
|
Various handy symbols to use in a command line UI |
|
Create a spinner |
|
Make a rule with one or two text labels |
|
Draw a sparkline bar graph with unicode block characters |
|
Draw a sparkline line graph with Braille characters. |
|
Draw a tree |
|
Syntax Highlighting |
|
Syntax highlight R code |
|
Syntax highlighting themes |
|
Turn on pretty-printing functions at the R console |
|
ANSI Control Sequences |
|
Detect if a stream support ANSI escape characters |
|
|
Hide/show cursor in a terminal |
Hashing |
|
Adjective-animal hash |
|
Emoji hash |
|
MD5 hash |
|
|
SHA-1 hash |
|
SHA-256 hash |
Utilities and Configuration |
|
|
|
cli environment variables and options |
|
Debug cli internals |
|
Capture the output of cli functions instead of printing it |
|
Create a format method for an object using cli tools |
|
The connection option that cli would use |
|
cli situation report |
|
Determine the width of the console |
|
Start, stop, query the default cli application |
|
Compare two character vectors elementwise |
|
Compare two character strings, character by character |
|
Check if the current platform/terminal supports reading single keys. |
|
Detect whether a stream supports |
|
Whether cli is emitting UTF-8 characters |
|
Read a single keypress at the terminal |
|
Print the helpful ruler to the screen |
|
Test cli output with testthat |
|
Simulate (a subset of) a VT-5xx ANSI terminal |
|
Superseded functions |
|
Indicate the start and termination of some computation in the status bar (superseded) |
|
Update the status bar (superseded) |
|
Clear the status bar (superseded) |
|
Update the status bar (superseded) |