# HG changeset patch # User Kai T. Ohlhus # Date 1580176655 -32400 # Node ID eb46a9f471647626d3a199e40d0c235d54e2b256 # Parent f6b390541a37728e7cdedfbcdecdf5094b7b467e Avoid color changes in MS Windows GUI terminal (bug #57658). * scripts/miscellaneous/mkoctfile.m: Add the gcc compiler flag "-fdiagnostics-color=never" in case of MS Windows and the GUI is running. For the MS Windows CLI version the output looks very nice. Update year. diff -r f6b390541a37 -r eb46a9f47164 scripts/miscellaneous/mkoctfile.m --- a/scripts/miscellaneous/mkoctfile.m Mon Jan 27 09:53:17 2020 -0800 +++ b/scripts/miscellaneous/mkoctfile.m Tue Jan 28 10:57:35 2020 +0900 @@ -1,4 +1,4 @@ -## Copyright (C) 2006-2019 Keith Goodman +## Copyright (C) 2006-2020 Keith Goodman ## ## This file is part of Octave. ## @@ -209,6 +209,11 @@ endif cmd = ['"' shell_script '"']; + if (ispc () && isguirunning ()) + ## FIXME: Remove this branch when the MS Windows GUI terminal widget can + ## properly handle colors (bug #57658). + cmd = [cmd ' "-fdiagnostics-color=never"']; + endif for i = 1:nargin cmd = [cmd ' "' varargin{i} '"']; endfor