aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/screen_text_color.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2007-10-15 19:27:16 +0100
committerRalph Amissah <ralph@amissah.com>2007-10-15 19:27:16 +0100
commite1ec4bd2dad2bd22ad97cea398ae1cfcfae183a2 (patch)
tree6ffe3ae1b2453578a032ce053934a31f980645e9 /lib/sisu/v0/screen_text_color.rb
parentregex matching of images, (and rearrangement of conditionals) (diff)
mostly the arrangement of conditionals
Diffstat (limited to 'lib/sisu/v0/screen_text_color.rb')
-rw-r--r--lib/sisu/v0/screen_text_color.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sisu/v0/screen_text_color.rb b/lib/sisu/v0/screen_text_color.rb
index a3f1cc7f..5d79c2b1 100644
--- a/lib/sisu/v0/screen_text_color.rb
+++ b/lib/sisu/v0/screen_text_color.rb
@@ -69,12 +69,12 @@ module SiSU_Screen
flag=SiSU_Env::Info_processing_flag.new
if @cmd
if flag.color #set default colors on or off -c acts as toggle against this default, if default is off -c turns on, if default is on -c turns off
- if @cmd =~/c/; @use_color=false
- else @use_color=true
+ @use_color=if @cmd =~/c/; false
+ else true
end
else
- if @cmd =~/c/; @use_color=true
- else @use_color=false
+ @use_color=if @cmd =~/c/; true
+ else false
end
end
if @cmd =~/k/; @use_color=false