changeset 18007:25b6fbe82827

Make the CLI the default for the 3.8 release. * NEWS: Announce '--force-gui' option * main.in.cc (main): Make CLI the default start option.
author Rik <rik@octave.org>
date Mon, 25 Nov 2013 19:10:33 -0800
parents b992a17767fe
children 2831a949a219 13c0c762fae1
files NEWS src/main.in.cc
diffstat 2 files changed, 23 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Mon Nov 25 18:28:43 2013 -0800
+++ b/NEWS	Mon Nov 25 19:10:33 2013 -0800
@@ -1,10 +1,11 @@
 Summary of important user-visible changes for version 3.8:
 ---------------------------------------------------------
 
- ** A GUI is now available with Octave and is the default when starting
-    an interactive session.  The original command line interface is also
-    available and can be entered by using the "--no-gui" option when
-    invoking Octave.
+ ** An experimental GUI is now available with Octave.  The GUI works well
+    on Linux systems, acceptably on Windows, but unsatisfactorily on Mac OS X.
+    To start a GUI session include the "--force-gui" option when invoking
+    Octave.  The GUI is under continuous improvement and will be the default
+    interface for the 4.0 release.
 
  ** Octave now uses OpenGL graphics by default with FLTK widgets.  If
     OpenGL libraries or FLTK widgets are not available when Octave is
--- a/src/main.in.cc	Mon Nov 25 18:28:43 2013 -0800
+++ b/src/main.in.cc	Mon Nov 25 19:10:33 2013 -0800
@@ -585,18 +585,12 @@
 {
   int retval = 0;
 
-  bool start_gui = true;
-  bool gui_libs = true;
+  bool start_gui = false;
+  bool gui_libs = false;
 
   std::string octave_bindir = get_octave_bindir ();
 
-  std::string file = octave_bindir + dir_sep_char;
-
-#if defined (HAVE_OCTAVE_GUI)
-  file += "octave-gui";
-#else
-  file += "octave-cli";
-#endif
+  std::string file = octave_bindir + dir_sep_char + "octave-cli";
 
   char **new_argv = new char * [argc + 1];
 
@@ -611,7 +605,18 @@
 
   for (int i = 1; i < argc; i++)
     {
-      if (! strcmp (argv[i], "--no-gui-libs"))
+      if (! strcmp (argv[i], "--force-gui"))
+        {
+          start_gui = true;
+          gui_libs = true;
+          file = octave_bindir + dir_sep_char;
+          #if defined (HAVE_OCTAVE_GUI)
+            file += "octave-gui";
+          #else
+            file += "octave-cli";
+          #endif
+        }
+      else if (! strcmp (argv[i], "--no-gui-libs"))
         {
           // Run the version of Octave that is not linked with any GUI
           // libraries.  It may not be possible to do plotting or any
@@ -619,9 +624,7 @@
           // require less memory.  Don't pass the --no-gui-libs option
           // on as that option is not recognized by Octave.
 
-          start_gui = false;
-          gui_libs = false;
-          file = octave_bindir + dir_sep_char + "octave-cli";
+          // This is the default for 3.8 release.
         }
       else if (! strcmp (argv[i], "--no-gui"))
         {
@@ -631,8 +634,7 @@
           // if the --no-gui option is given, we may be asked to do some
           // plotting or ui* calls.
 
-          start_gui = false;
-          new_argv[k++] = argv[i];
+          // This option calls the cli executable for the 3.8 release.
         }
       else if (! strcmp (argv[i], "--silent") || ! strcmp (argv[i], "-q"))
         warn_display = false;
@@ -691,8 +693,7 @@
         }
       else
         {
-          // Parent.  Forward signals to the child while waiting for it
-          // to exit.
+          // Parent.  Forward signals to child while waiting for it to exit.
 
           int status;