changeset 18037:708173343c50 stable

use "octave" instead of "\\s" in default prompt * input.cc (set_default_prompts): Use "octave" instead of "\\s". (FPS1): Fix doc string to match.
author John W. Eaton <jwe@octave.org>
date Mon, 02 Dec 2013 12:05:14 -0500
parents c97ee13f1027
children 62f94ef938b4
files libinterp/corefcn/input.cc
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/input.cc	Mon Dec 02 11:29:22 2013 -0500
+++ b/libinterp/corefcn/input.cc	Mon Dec 02 12:05:14 2013 -0500
@@ -137,7 +137,10 @@
 void
 set_default_prompts (void)
 {
-  VPS1 = "\\s:\\#> ";
+  // Use literal "octave" instead of "\\s" to avoid setting the prompt
+  // to "octave.exe" or "octave-gui", etc.
+
+  VPS1 = "octave:\\#> ";
   VPS2 = "> ";
   VPS4 = "+ ";
 
@@ -1237,7 +1240,7 @@
 Query or set the primary prompt string.  When executing interactively,\n\
 Octave displays the primary prompt when it is ready to read a command.\n\
 \n\
-The default value of the primary prompt string is @qcode{\"\\s:\\#> \"}.\n\
+The default value of the primary prompt string is @qcode{\"octave:\\#> \"}.\n\
 To change it, use a command like\n\
 \n\
 @example\n\