help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ending a script without restarting Octave


From: Mike Miller
Subject: Re: Ending a script without restarting Octave
Date: Mon, 27 Jan 2014 19:54:08 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Sat, Jan 25, 2014 at 21:47:10 -0800, rayc31415 wrote:
> Just a beginners question here.  I have a .m script.  When it runs, the
> terminal goes from taking inputs 
> 
> >>
> 
> to the output of the script.  Then it says (END) after the script has been
> run.  Any key press causes a beep. Is there a way of getting it to go back
> to accepting inputs after the script has been run?  It's kind of annoying
> that I have to restart octave every time I was to re-run a script.  Here is
> the program:

What you are seeing is the pager that Octave uses to show a screenful of
output at a time by default. However, the default behavior of the pager
in Octave should be different. Do you have a LESS variable in your
environment? What does "getenv LESS" in Octave show? Also wouldn't hurt
to say which version of Octave, on what operating system, and where you
downloaded Octave from.

The default behavior for displaying more than one screenful of data
ought to show the following at the bottom of the screen:

  -- less -- (f)orward, (b)ack, (q)uit

and it should exit automatically when you reach the end of the output,
using either the down arrow, space bar, or f key. And q exits the pager
immediately.

If you want to turn off the pager and just let everything scroll by,
type "more off", or run Octave with the --traditional option.

HTH,

-- 
mike


reply via email to

[Prev in Thread] Current Thread [Next in Thread]