Method: TTY::Reader::Line.sanitize
- Defined in:
- lib/tty/reader/line.rb
.sanitize(text) ⇒ String
Strip ANSI characters from the text
17 18 19 |
# File 'lib/tty/reader/line.rb', line 17 def self.sanitize(text) text.dup.gsub(ANSI_MATCHER, "") end |