# HG changeset patch # User Rik # Date 1522278486 25200 # Node ID 89a9c9a806692890a15b8e8c45030f3f65daec6d # Parent 56a712112482043f8091e2f13651ff552e86ef17 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. diff -r 56a712112482 -r 89a9c9a80669 installer-files/octave.bat --- 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