Octave gives file path every line

View: New views
2 Messages — Rating Filter:   Alert me  

Octave gives file path every line

by eriktheguy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello everyone, first post.
When I used to use octave it would say 'Octave>' every command line when prompting for input. I recently installed on Windows 7. There are no problems but now octave gives the entire file path every line, followed by the '>' character on the next line.
So instead of:

Octave>

I get:

Octave.exe:#:C/Octave/3.2.2_gcc-4.3.0/bin
>

This isn't stopping me from working, but it is really annoying. I would appreciate any help.

Re: Octave gives file path every line

by Tatsuro MATSUOKA-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

This is Frequently Asked Question but it is not included in the octave FAQ wiki.

Please comment out PS1 setting in
...\Octave\3.2.2_gcc-4.3.0\share\octave\3.2.2\m\startup\octaverc as

#PS1("\\s:\\#:\\w\n> ");

or override it in
...\Octave\3.2.2_gcc-4.3.0\share\octave\site\m\startup\octaverc
or in ~\.octaverc for example
PS1('octave:\#>')

The symbol '~' indicates the home directory for octave.
Its fullpath is available by tilde_expand command
octave:1>tilde_expand ('~')
ans = C:\Documents and Settings\Tatsu

You make a file named '.octaverc' in the home directory
(in the example above (C:\Documents and Settings\Tatsu) )

Details and differences of startup files, please consult the octave manual
http://www.gnu.org/software/octave/doc/interpreter/Startup-Files.html#Startup-Files 

For Customizing the Prompt, see
http://www.gnu.org/software/octave/doc/interpreter/Customizing-the-Prompt.html#Customizing-the-Prompt
 
Regards

Tatsuro

--- eriktheguy  wrote:

>
> Hello everyone, first post.
> When I used to use octave it would say 'Octave>' every command line when
> prompting for input. I recently installed on Windows 7. There are no
> problems but now octave gives the entire file path every line, followed by
> the '>' character on the next line.
> So instead of:
>
> Octave>
>
> I get:
>
> Octave.exe:#:C/Octave/3.2.2_gcc-4.3.0/bin
> >
>
> This isn't stopping me from working, but it is really annoying. I would
> appreciate any help.
> --
> View this message in context:
> http://www.nabble.com/Octave-gives-file-path-every-line-tp25942956p25942956.html
> Sent from the Octave - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Help-octave mailing list
> Help-octave@...
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>


--------------------------------------
GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
http://pr.mail.yahoo.co.jp/gyao/
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave