|GNU Octave Manual Version 3|
by John W. Eaton, David Bateman, Søren Hauberg
Paperback (6"x9"), 568 pages
RRP £24.95 ($39.95)
22.214.171.124 Paging Screen Output
When running interactively, Octave normally sends any output intended
for your terminal that is more than one screen long to a paging program,
more. This avoids the problem of having a
large volume of output stream by before you can read it. With
less (and some versions of
more) you can also scan forward
and backward, and search for specific items.
Normally, no output is displayed by the pager until just before Octave
is ready to print the top level prompt, or read from the standard input
(for example, by using the
This means that there may be some delay before any output appears on
your screen if you have asked Octave to perform a significant amount of
work with a single command statement. The function
fflush may be
used to force output to be sent to the pager (or any other stream)
You can select the program to run as the pager using the
function, and you can turn paging off by using the function
- Command: more
- Command: more on
- Command: more off
- Turn output pagination on or off. Without an argument,
moretoggles the current state. The current state can be determined via
- Built-in Function: val = PAGER ()
- Built-in Function: old_val = PAGER (new_val)
- Query or set the internal variable that specifies the program to use
to display terminal output on your system. The default value is
"pg", depending on what programs are installed on your system. See appendix E Installing Octave.
See also more, page_screen_output, page_output_immediately, PAGER_FLAGS
- Built-in Function: val = PAGER_FLAGS ()
- Built-in Function: old_val = PAGER_FLAGS (new_val)
- Query or set the internal variable that specifies the options to pass
to the pager.
See also PAGER
- Built-in Function: val = page_screen_output ()
- Built-in Function: old_val = page_screen_output (new_val)
- Query or set the internal variable that controls whether output intended
for the terminal window that is longer than one page is sent through a
pager. This allows you to view one screenful at a time. Some pagers
less---see appendix E Installing Octave) are also capable of moving backward on the output.
- Built-in Function: val = page_output_immediately ()
- Built-in Function: val = page_output_immediately (new_val)
- Query or set the internal variable that controls whether Octave sends output to the pager as soon as it is available. Otherwise, Octave buffers its output and waits until just before the prompt is printed to flush it to the pager.
- Built-in Function: fflush (fid)
- Flush output to fid. This is useful for ensuring that all
pending output makes it to the screen before some other event occurs.
For example, it is always a good idea to flush the standard output
stream before calling
fflushreturns 0 on success and an OS dependent error value (-1 on unix) on error.
See also fopen, fclose
|ISBN 095461206X||GNU Octave Manual Version 3||See the print edition|