2011-10-27 13:08:53 +02:00
|
|
|
function dyn_waitbar_close(h)
|
|
|
|
% h = dyn_waitbar_close(h)
|
2017-05-16 15:10:20 +02:00
|
|
|
% adaptive close waitbar, compatible with
|
2011-10-27 13:08:53 +02:00
|
|
|
% octave and when console_mode=1
|
|
|
|
|
|
|
|
%
|
2022-04-13 13:15:19 +02:00
|
|
|
% Copyright © 2011-2021 Dynare Team
|
2011-10-27 13:08:53 +02:00
|
|
|
%
|
|
|
|
% This file is part of Dynare.
|
|
|
|
%
|
|
|
|
% Dynare 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 Software Foundation, either version 3 of the License, or
|
|
|
|
% (at your option) any later version.
|
|
|
|
%
|
|
|
|
% Dynare is distributed in the hope that it will be useful,
|
|
|
|
% but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
% GNU General Public License for more details.
|
|
|
|
%
|
|
|
|
% You should have received a copy of the GNU General Public License
|
2021-06-09 17:33:48 +02:00
|
|
|
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
2011-10-27 13:08:53 +02:00
|
|
|
global options_
|
|
|
|
|
2021-09-16 10:40:00 +02:00
|
|
|
if options_.console_mode
|
2011-10-27 13:08:53 +02:00
|
|
|
clear dyn_waitbar;
|
2017-05-16 12:42:01 +02:00
|
|
|
diary on
|
2011-10-27 13:08:53 +02:00
|
|
|
fprintf('\n');
|
|
|
|
else
|
2017-05-16 12:42:01 +02:00
|
|
|
close(h)
|
2011-10-27 13:08:53 +02:00
|
|
|
end
|
2011-12-13 18:32:57 +01:00
|
|
|
|
|
|
|
clear dyn_waitbar;
|