File: term_decolor

package info (click to toggle)
ruby-term-ansicolor 1.11.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 332 kB
  • sloc: ruby: 2,138; makefile: 10
file content (12 lines) | stat: -rwxr-xr-x 179 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env ruby
#
## Little unix filter that uncolorizes any input stream.
#

require 'term/ansicolor'

include Term::ANSIColor

ARGF.each do |line|
  puts line.uncolored
end