crayon: Colored Terminal Output

Share:

Colored terminal output on terminals that support 'ANSI' color and highlight codes. It also works in 'Emacs' 'ESS'. 'ANSI' color support is automatically detected. Colors and highlighting can be combined and nested. New styles can also be created easily. This package was inspired by the 'chalk' 'JavaScript' project.

Author
Gábor Csárdi [aut, cre], Brodie Gaslam [ctb]
Date of publication
2016-06-28 20:16:37
Maintainer
Gábor Csárdi <csardi.gabor@gmail.com>
License
MIT + file LICENSE
Version
1.3.2
URLs

View on CRAN

Man pages

chr
Convert to character
col_nchar
Count number of characters in an ANSI colored string
col_strsplit
Split an ANSI colored string
col_substr
Substring(s) of an ANSI colored string
col_substring
Substring(s) of an ANSI colored string
combine_styles
Combine two or more ANSI styles
concat
Concatenate character vectors
crayon
Colored terminal output
drop_style
Remove a style
has_color
Does the current R session support ANSI colors?
has_style
Check if a sting has some ANSI styling
make_style
Create an ANSI color style
num_colors
Number of colors the terminal supports
show_ansi_colors
Show the ANSI color table on the screen
start.crayon
Switch on or off a style
strip_style
Remove ANSI escape sequences from a string
style
Add style to a string
styles
ANSI escape sequences of crayon styles

Files in this package

crayon
crayon/inst
crayon/inst/ANSI-8-OSX.png
crayon/inst/ANSI-256-OSX.png
crayon/inst/logo.png
crayon/inst/README.markdown
crayon/inst/NEWS.md
crayon/inst/logo.svg.gz
crayon/tests
crayon/tests/testthat.R
crayon/tests/testthat
crayon/tests/testthat/test-utils.R
crayon/tests/testthat/test-operations.R
crayon/tests/testthat/test-color.r
crayon/tests/testthat/test-vectors.r
crayon/tests/testthat/test-styles.r
crayon/tests/testthat/test-has-style.r
crayon/tests/testthat/test-style-var.r
crayon/tests/testthat/test-has-color.r
crayon/tests/testthat/test-make-style.r
crayon/NAMESPACE
crayon/R
crayon/R/style-var.r
crayon/R/has_ansi.r
crayon/R/ansi-256.r
crayon/R/combine.r
crayon/R/print.r
crayon/R/machinery.r
crayon/R/utils.r
crayon/R/styles.r
crayon/R/string.r
crayon/R/disposable.r
crayon/R/string_operations.r
crayon/R/parts.r
crayon/R/crayon-package.r
crayon/R/has_color.r
crayon/R/show.r
crayon/MD5
crayon/DESCRIPTION
crayon/man
crayon/man/crayon.Rd
crayon/man/concat.Rd
crayon/man/start.crayon.Rd
crayon/man/col_nchar.Rd
crayon/man/show_ansi_colors.Rd
crayon/man/has_style.Rd
crayon/man/col_substr.Rd
crayon/man/make_style.Rd
crayon/man/strip_style.Rd
crayon/man/col_substring.Rd
crayon/man/styles.Rd
crayon/man/combine_styles.Rd
crayon/man/drop_style.Rd
crayon/man/chr.Rd
crayon/man/col_strsplit.Rd
crayon/man/style.Rd
crayon/man/has_color.Rd
crayon/man/num_colors.Rd
crayon/LICENSE