styles: ANSI escape sequences of crayon styles

View source: R/machinery.R

stylesR Documentation

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)

r-pkgs/crayon documentation built on Nov. 9, 2023, 4:33 p.m.