Commit 6c7501d9 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

move console setting to global_initialization.m

parent fc7ea133
......@@ -101,20 +101,6 @@ for i=2:nargin
command = [command ' ' varargin{i-1}];
end
if isempty(strfind(command, 'console'))
if exist('OCTAVE_VERSION')
if sum(get(0,'screensize'))==4
command = [command ' console'];
end
else
if isunix && (~usejava('jvm') || ...
((matlab_ver_less_than('7.5') && sum(get(0,'ScreenSize'))==4) || ...
(~matlab_ver_less_than('7.5') && ~feature('ShowFigureWindows'))))
command = [command ' console'];
end
end
end
[status, result] = system(command);
disp(result)
if status
......
......@@ -33,9 +33,19 @@ global oo_ M_ options_ estim_params_ bayestopt_ estimation_info ex0_ ys0_ ex_de
estim_params_ = [];
bayestopt_ = [];
options_.datafile = '';
options_.console_mode = 0;
options_.verbosity = 1;
options_.console_mode = 0;
if exist('OCTAVE_VERSION')
if sum(get(0,'screensize'))==4
options_.console_mode = 1;
end
else
if isunix && (~usejava('jvm') || ...
((matlab_ver_less_than('7.5') && sum(get(0,'ScreenSize'))==4) || ...
(~matlab_ver_less_than('7.5') && ~feature('ShowFigureWindows'))))
options_.console_mode = 1;
end
end
options_.terminal_condition = 0;
options_.rplottype = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment