Handbook
Glossary
strip-ansi-escapes ( str -- str' )
Vocabulary
io
.
streams
.
escape-codes
Inputs
str
a
string
Outputs
str'
a
string
Word description
Returns a copy of
str
with all ANSI escape sequences stripped out.
Definition
USING:
io.streams.escape-codes.private
regexp
;
IN:
io.streams.escape-codes
:
strip-ansi-escapes
( str -- str' )
ansi-escape-regexp
""
re-replace
;