File: decolor

package info (click to toggle)
ruby-term-ansicolor 1.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 176 kB
  • sloc: ruby: 281; makefile: 8
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