remove_ANSI: Remove ANSI color code

Description Usage Arguments Value Examples

View source: R/spsUtil.R

Description

Remove ANSI pre-/suffix-fix in a character string.

Usage

1
remove_ANSI(strings)

Arguments

strings

strings, a character vector

Value

strings with out ANSI characters

Examples

1
2
3
remove_ANSI("\033[34m\033[1ma\033[22m\033[39m")
remove_ANSI(c("\033[34m\033[1ma\033[22m\033[39m",
              "\033[34m\033[1mb\033[22m\033[39m"))

spsUtil documentation built on Oct. 31, 2021, 1:06 a.m.