aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/screen_text_color.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-01-06 22:03:06 -0500
committerRalph Amissah <ralph@amissah.com>2014-01-06 22:03:28 -0500
commit42aae8da2b103b4038cfb2fc24591b9004972d4a (patch)
tree43664a21f64de59ca4fd0a241603260e3b7de04a /lib/sisu/v5/screen_text_color.rb
parentv5: date 2014: headers bin/sisu & lib/; code constants.rb (diff)
bin/sisu, version dir (fix) & version info
* (ensure SiSU_version_dir) fix * sisu version info, yml info also when installed via ruby gem * downstream libs
Diffstat (limited to 'lib/sisu/v5/screen_text_color.rb')
-rw-r--r--lib/sisu/v5/screen_text_color.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sisu/v5/screen_text_color.rb b/lib/sisu/v5/screen_text_color.rb
index 2bdbb4a3..18ed9926 100644
--- a/lib/sisu/v5/screen_text_color.rb
+++ b/lib/sisu/v5/screen_text_color.rb
@@ -71,8 +71,7 @@ module SiSU_Screen
attr_reader :cX
def initialize(color_state,*txt)
@color_state,@txt=color_state,txt
- @color_instruct=txt[0] ####
- #flag=SiSU_Env::InfoProcessingFlag.new
+ @color_instruct=txt[0]
@cX=@@cX=if color_state==:on
Color.new do
self.off=self.white=self.white_bold=self.marker=self.bold=self.underline=self.invert=self.darkgrey_hi=self.grey_hi=self.pink_hi=self.fuchsia_hi=self.red_hi=self.orange_hi=self.yellow_hi=self.brown_hi=self.lightgreen_hi=self.green_hi=self.cyan_hi=self.blue_hi=self.navy_hi=self.grey=self.pink=self.fuchsia=self.ruby=self.red=self.orange=self.yellow=self.brown=self.green=self.darkgreen=self.cyan=self.blue=self.navy=self.black=''
@@ -208,7 +207,7 @@ module SiSU_Screen
STDERR.puts "\t #{@cX.grey}#{@txt[0]}#{@cX.off} #{@cX.fuchsia}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
end
def version
- puts "#{@cX.blue_hi}#{@txt[0]} #{@txt[1]}#{@cX.off} #{@cX.grey} (#{@txt[3]} [#{@txt[2]}]) &#{@cX.off} #{@cX.ruby}Ruby#{@cX.off} #{@cX.grey}(#{@txt[4]})#{@cX.off}\n"
+ puts "#{@cX.blue_hi}#{@txt[0]} #{@txt[1]}#{@cX.off} #{@cX.grey} (#{@txt[3]} [#{@txt[2]}])#{@txt[4]} &#{@cX.off} #{@cX.ruby}Ruby#{@cX.off} #{@cX.grey}(#{@txt[5]})#{@cX.off}\n"
end
def html3numbers
puts %{\t#{@cX.green}#{@txt[0]}#{@cX.off} #{@cX.cyan}files processed#{@cX.off}. } +