ansi_string: Labels a character vector as containing ANSI control codes.

View source: R/ansiex.R

ansi_stringR Documentation

Labels a character vector as containing ANSI control codes.

Description

This function sets the class of its argument, activating ANSI-string-specific methods such as for printing.

Usage

ansi_string(x)

Arguments

x

A character vector or something that can be coerced into one.

Value

A cli_ansi_string object, a subclass of character, with the same length and contents as x.

See Also

Other low level ANSI functions: ansi_has_any(), ansi_hide_cursor(), ansi_regex(), ansi_strip()


r-lib/boxes documentation built on April 24, 2024, 11:37 a.m.