Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

styles

ANSI escape sequences of crayon styles


Description

You can use this function to list all availables crayon styles, via names(styles()), or to explicitly apply an ANSI escape seauence to a string.

Usage

styles()

Value

A named list. Each list element is a list of two strings, named ‘open’ and ‘close’.

See Also

crayon() for the beginning of the crayon manual.

Examples

names(styles())
cat(styles()[["bold"]]$close)

crayon

Colored Terminal Output

v1.4.1
MIT + file LICENSE
Authors
Gábor Csárdi [aut, cre], Brodie Gaslam [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.