moving zebra to zebra-broken
[zcc.git] / lib / zcc / ansicolorz.rb
blobab296dde2d21584349321e9a3f0a1049dfd423da
1 # HighLine has a lot of Erb junk in its colorizing that makes the text difficult to read.\r
2 # Term::ANSIColor is much simpler. Other colorising\r
3 class String\r
4   include Term::ANSIColor\r
5 end\r
6 \r
7 module Term\r
8   module ANSIColor\r
9     attributez = [:clear, :reset,   :bold,  :dark,   :italic,  :underline,  :underscore, :blink,   :rapid_blink,   :negative,  :concealed, :strikethrough,   :black,  :red,  :green, :yellow,  :blue,  :magenta,   :cyan,   :white,   :on_black,   :on_red,   :on_green, :on_yellow,  :on_blue,    :on_magenta,  :on_cyan, :on_white ]\r
10     attributez.each do |c|\r
11       eval %Q{\r
12         def #{c}z\r
13           #{c} + " "\r
14         end\r
15       }\r
16     end\r
17     def headline\r
18       white.bold.on_black\r
19     end\r
20     def headlinez\r
21       headline + " "\r
22     end\r
23   \r
24     \r
25   end\r
26 end\r