[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: How to suppress to display comment and code
From: |
Mike Miller |
Subject: |
Re: Re: How to suppress to display comment and code |
Date: |
Tue, 31 May 2016 15:23:18 -0700 |
User-agent: |
Mutt/1.6.0 (2016-04-01) |
On Tue, May 31, 2016 at 16:10:10 -0400, JohnD wrote:
> How do you get the current state of echo on/off ?
Something like this:
orig_echo = echo_executing_commands ();
orig_more = page_screen_output ();
unwind_protect
disp ("inside my script");
unwind_protect_cleanup
echo_executing_commands (orig_echo);
page_screen_output (orig_more);
clear ("orig_echo", "orig_more");
end_unwind_protect
or wrap the whole body of build_packages in a function, and use the
"local" options of echo_executing_commands and page_screen_output.
--
mike