Mercurial > octave
changeset 28020:eb46a9f47164 stable release-5-2-0
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.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Tue, 28 Jan 2020 10:57:35 +0900 |
parents | f6b390541a37 |
children | 8933b2985dd5 df5bbd92b3c8 |
files | scripts/miscellaneous/mkoctfile.m |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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