search for: substr_ctl

Displaying 2 results from an estimated 2 matches for "substr_ctl".

Did you mean: substr2_ctl
2018 Apr 02
0
New Package fansi: ANSI Control Sequence Aware String Functions
...SGR control sequences.? ANSI CSI SGR control sequences [1] can be used to format text in terminals that support them. For example the control sequence "\033[31m" causes text that follows to render in red, and the control sequence "\033[0m" turns off formatting.? So with: > substr_ctl("\033[31mABC\033[0m", 2, 2) [1] "\033[31mB\033[0m" we extract the second letter of the red formatted ABC while retaining the formatting. fansi is written mostly in C, so its performance is comparable to the corresponding base functions.? There are versions of some of the funct...
2018 Apr 02
0
New Package fansi: ANSI Control Sequence Aware String Functions
...SGR control sequences.? ANSI CSI SGR control sequences [1] can be used to format text in terminals that support them. For example the control sequence "\033[31m" causes text that follows to render in red, and the control sequence "\033[0m" turns off formatting.? So with: > substr_ctl("\033[31mABC\033[0m", 2, 2) [1] "\033[31mB\033[0m" we extract the second letter of the red formatted ABC while retaining the formatting. fansi is written mostly in C, so its performance is comparable to the corresponding base functions.? There are versions of some of the funct...