Mercurial > mxe-octave
changeset 4646:89a9c9a80669
octave.bat: Start CLI by default and don't close terminal window (bug #53419).
* octave.bat: Set GUI_MODE=0 to start CLI by default.
Delete "exit" at end of file so that terminal that executed octave.bat is not
destroyed.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 28 Mar 2018 16:08:06 -0700 |
parents | 56a712112482 |
children | 7eebfda7daa1 |
files | installer-files/octave.bat |
diffstat | 1 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/installer-files/octave.bat Tue Mar 27 16:56:01 2018 -0700 +++ b/installer-files/octave.bat Wed Mar 28 16:08:06 2018 -0700 @@ -31,10 +31,10 @@ Rem set HOME to 8.3 format for %%I in ("%HOME%") do set HOME=%%~sI -Rem Check for args to see if we are told to start GUI (--gui, --force-gui) -Rem or not (--no-gui). -Rem If nothing is specified, start the GUI. -set GUI_MODE=1 +Rem Check for args to determine if GUI (--gui, --force-gui) +Rem or CLI (--no-gui) should be started. +Rem If nothing is specified, start the CLI. +set GUI_MODE=0 :checkargs if -%1-==-- goto args_done @@ -54,12 +54,10 @@ :args_done -Rem Start Octave (this detaches and immediately returns): +Rem Start Octave (this detaches and immediately returns). if %GUI_MODE%==1 ( start octave-gui.exe --gui %* ) else ( start octave-cli.exe %* ) -Rem Close the batch file's cmd.exe window -exit