aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/plaintext.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-05-01 01:44:04 -0400
committerRalph Amissah <ralph@amissah.com>2010-05-01 01:44:04 -0400
commitd9763aebaf71cf9629fdcf3c0e8818a1edb2b528 (patch)
treed18f7b2784887095d96d36038d1c95402d507b78 /lib/sisu/v2/plaintext.rb
parentparam_identify_markup, identify version 2 markup (diff)
reduce screen output unless some verbose flag (such as -v) is used
Diffstat (limited to 'lib/sisu/v2/plaintext.rb')
-rw-r--r--lib/sisu/v2/plaintext.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/sisu/v2/plaintext.rb b/lib/sisu/v2/plaintext.rb
index c69490ab..09e94392 100644
--- a/lib/sisu/v2/plaintext.rb
+++ b/lib/sisu/v2/plaintext.rb
@@ -83,10 +83,13 @@ module SiSU_Plaintext
env=SiSU_Env::Info_env.new(@opt.fns)
path=env.path.output_tell
tool=if @opt.cmd =~/[MVv]/; "#{env.program.text_editor} #{path}/#{md.fnb}/#{md.fn[:plain]}"
- else ''
+ else @opt.fns
+ end
+ unless @opt.cmd =~/q/
+ @opt.cmd=~/[MVvz]/ \
+ ? SiSU_Screen::Ansi.new(@opt.cmd,'Plaintext',tool).green_hi_blue \
+ : SiSU_Screen::Ansi.new(@opt.cmd,'Plaintext',tool).green_title_hi
end
- tell=SiSU_Screen::Ansi.new(@opt.cmd,'Plaintext',tool)
- tell.green_hi_blue unless @opt.cmd =~/q/
tell=SiSU_Screen::Ansi.new(@opt.cmd,@opt.fns,"#{env.path.output_tell}/#{md.fnb}/#{md.fn[:plain]}")
tell.flow if @opt.cmd =~/[MV]/
my_make=SiSU_Env::Create_file.new(@opt.cmd,@opt.fns)