diff options
Diffstat (limited to 'lib/sisu/v4/help.rb')
-rw-r--r-- | lib/sisu/v4/help.rb | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/sisu/v4/help.rb b/lib/sisu/v4/help.rb index 391e722d..df08fb2e 100644 --- a/lib/sisu/v4/help.rb +++ b/lib/sisu/v4/help.rb @@ -8,7 +8,7 @@ * Author: Ralph Amissah * Copyright: (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, - 2007, 2008, 2009, 2010, 2011, 2012 Ralph Amissah, All Rights Reserved. + 2007, 2008, 2009, 2010, 2011, 2012, 2013 Ralph Amissah, All Rights Reserved. * License: GPL 3 or later: @@ -63,7 +63,8 @@ module SiSU_Help require_relative 'i18n' # i18n.rb def initialize(request='',color='') @request,@color=request,color - @cX=(color =~/color_off/) \ + @cX=((color =~/color_off/) \ + || (defined? color.act && color.act[:color_state][:set]==:off)) \ ? (SiSU_Screen::Ansi.new('k').cX) : (SiSU_Screen::Ansi.new('yes').cX) fns='help_example_dummy_file_name.sst' @@ -159,7 +160,7 @@ module SiSU_Help end def summary print <<-WOK - SiSU, Copyright (C) 1997 - 2012 Ralph Amissah + SiSU, Copyright (C) 1997 - 2013 Ralph Amissah License GPL version 3 or Later. This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under the conditions of the GPL3 or later. For more license detail type/enter: "sisu --help license" @@ -900,7 +901,12 @@ If you have problems check permissions (and if in home directory ownership). version=SiSU_Env::InfoVersion.instance.get_version rb_ver=SiSU_Env::InfoVersion.instance.rbversion if version[:version] - SiSU_Screen::Ansi.new('-v',version[:project],version[:version],version[:date_stamp],version[:date],rb_ver).version + opt_cmd=if defined? @color.cmd \ + and @color.cmd =~/[ck]/ + @color.cmd + else '-v' + end + SiSU_Screen::Ansi.new(opt_cmd,version[:project],version[:version],version[:date_stamp],version[:date],rb_ver).version else puts 'SiSU version information not available' end end @@ -1739,7 +1745,7 @@ preformatted text SiSU, a framework for document structuring, publishing and search - Copyright (C) 1997 - 2012 Ralph Amissah + Copyright (C) 1997 - 2013 Ralph Amissah This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -1786,7 +1792,7 @@ preformatted text * Standard SiSU meta-markup syntax, and the * Standard SiSU object citation numbering and system -Copyright (C) Ralph Amissah 1997, current 2012. +Copyright (C) Ralph Amissah 1997, current 2013. All Rights Reserved. Information on these may be obtained from: |