File: decolor

package info (click to toggle)
ruby-term-ansicolor 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,104 kB
  • sloc: ruby: 1,269; 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