remove_color_codes: Remove color codes from a string

View source: R/helper_functions.r

remove_color_codesR Documentation

Remove color codes from a string

Description

This function removes ANSI color codes from a given text string.

Usage

remove_color_codes(s)

Arguments

s

The text string containing ANSI color codes.

Value

A text string with ANSI color codes removed.

Examples

colored_text <- make_colored("Hello, world!", "blue")
remove_color_codes(colored_text)

plotcli documentation built on May 29, 2024, 6:22 a.m.