~ubuntu-branches/debian/lenny/octave3.0/lenny

« back to all changes in this revision

Viewing changes to doc/interpreter/HTML/Paging-Screen-Output.html

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2007-12-23 16:04:15 UTC
  • Revision ID: james.westby@ubuntu.com-20071223160415-n4gk468dihy22e9v
Tags: upstream-3.0.0
ImportĀ upstreamĀ versionĀ 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html lang="en">
 
2
<head>
 
3
<title>Paging Screen Output - Untitled</title>
 
4
<meta http-equiv="Content-Type" content="text/html">
 
5
<meta name="description" content="Untitled">
 
6
<meta name="generator" content="makeinfo 4.11">
 
7
<link title="Top" rel="start" href="index.html#Top">
 
8
<link rel="up" href="Terminal-Output.html#Terminal-Output" title="Terminal Output">
 
9
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
 
10
<meta http-equiv="Content-Style-Type" content="text/css">
 
11
<style type="text/css"><!--
 
12
  pre.display { font-family:inherit }
 
13
  pre.format  { font-family:inherit }
 
14
  pre.smalldisplay { font-family:inherit; font-size:smaller }
 
15
  pre.smallformat  { font-family:inherit; font-size:smaller }
 
16
  pre.smallexample { font-size:smaller }
 
17
  pre.smalllisp    { font-size:smaller }
 
18
  span.sc    { font-variant:small-caps }
 
19
  span.roman { font-family:serif; font-weight:normal; } 
 
20
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
 
21
--></style>
 
22
</head>
 
23
<body>
 
24
<div class="node">
 
25
<p>
 
26
<a name="Paging-Screen-Output"></a>
 
27
Up:&nbsp;<a rel="up" accesskey="u" href="Terminal-Output.html#Terminal-Output">Terminal Output</a>
 
28
<hr>
 
29
</div>
 
30
 
 
31
<h5 class="subsubsection">14.1.1.1 Paging Screen Output</h5>
 
32
 
 
33
<p>When running interactively, Octave normally sends any output intended
 
34
for your terminal that is more than one screen long to a paging program,
 
35
such as <code>less</code> or <code>more</code>.  This avoids the problem of having a
 
36
large volume of output stream by before you can read it.  With
 
37
<code>less</code> (and some versions of <code>more</code>) you can also scan forward
 
38
and backward, and search for specific items.
 
39
 
 
40
   <p>Normally, no output is displayed by the pager until just before Octave
 
41
is ready to print the top level prompt, or read from the standard input
 
42
(for example, by using the <code>fscanf</code> or <code>scanf</code> functions). 
 
43
This means that there may be some delay before any output appears on
 
44
your screen if you have asked Octave to perform a significant amount of
 
45
work with a single command statement.  The function <code>fflush</code> may be
 
46
used to force output to be sent to the pager (or any other stream)
 
47
immediately.
 
48
 
 
49
   <p>You can select the program to run as the pager using the <code>PAGER</code>
 
50
function, and you can turn paging off by using the function
 
51
<code>more</code>.
 
52
 
 
53
   <p><a name="doc_002dmore"></a>
 
54
 
 
55
<div class="defun">
 
56
&mdash; Command: <b>more</b><var><a name="index-more-663"></a></var><br>
 
57
&mdash; Command: <b>more</b><var> on<a name="index-more-664"></a></var><br>
 
58
&mdash; Command: <b>more</b><var> off<a name="index-more-665"></a></var><br>
 
59
<blockquote><p>Turn output pagination on or off.  Without an argument, <code>more</code>
 
60
toggles the current state. 
 
61
</p></blockquote></div>
 
62
 
 
63
   <p><a name="doc_002dPAGER"></a>
 
64
 
 
65
<div class="defun">
 
66
&mdash; Built-in Function: <var>val</var> = <b>PAGER</b> ()<var><a name="index-PAGER-666"></a></var><br>
 
67
&mdash; Built-in Function: <var>old_val</var> = <b>PAGER</b> (<var>new_val</var>)<var><a name="index-PAGER-667"></a></var><br>
 
68
<blockquote><p>Query or set the internal variable that specifies the program to use
 
69
to display terminal output on your system.  The default value is
 
70
normally <code>"less"</code>, <code>"more"</code>, or
 
71
<code>"pg"</code>, depending on what programs are installed on your system. 
 
72
See <a href="Installation.html#Installation">Installation</a>.
 
73
        <pre class="sp">
 
74
     
 
75
     </pre>
 
76
     <strong>See also:</strong> more, page_screen_output, page_output_immediately, PAGER_FLAGS. 
 
77
</p></blockquote></div>
 
78
 
 
79
   <p><a name="doc_002dPAGER_005fFLAGS"></a>
 
80
 
 
81
<div class="defun">
 
82
&mdash; Built-in Function: <var>val</var> = <b>PAGER_FLAGS</b> ()<var><a name="index-PAGER_005fFLAGS-668"></a></var><br>
 
83
&mdash; Built-in Function: <var>old_val</var> = <b>PAGER_FLAGS</b> (<var>new_val</var>)<var><a name="index-PAGER_005fFLAGS-669"></a></var><br>
 
84
<blockquote><p>Query or set the internal variable that specifies the options to pass
 
85
to the pager.
 
86
        <pre class="sp">
 
87
     
 
88
     </pre>
 
89
     <strong>See also:</strong> PAGER. 
 
90
</p></blockquote></div>
 
91
 
 
92
   <p><a name="doc_002dpage_005fscreen_005foutput"></a>
 
93
 
 
94
<div class="defun">
 
95
&mdash; Built-in Function: <var>val</var> = <b>page_screen_output</b> ()<var><a name="index-page_005fscreen_005foutput-670"></a></var><br>
 
96
&mdash; Built-in Function: <var>old_val</var> = <b>page_screen_output</b> (<var>new_val</var>)<var><a name="index-page_005fscreen_005foutput-671"></a></var><br>
 
97
<blockquote><p>Query or set the internal variable that controls whether output intended
 
98
for the terminal window that is longer than one page is sent through a
 
99
pager.  This allows you to view one screenful at a time.  Some pagers
 
100
(such as <code>less</code>&mdash;see <a href="Installation.html#Installation">Installation</a>) are also capable of moving
 
101
backward on the output. 
 
102
</p></blockquote></div>
 
103
 
 
104
   <p><a name="doc_002dpage_005foutput_005fimmediately"></a>
 
105
 
 
106
<div class="defun">
 
107
&mdash; Built-in Function: <var>val</var> = <b>page_output_immediately</b> ()<var><a name="index-page_005foutput_005fimmediately-672"></a></var><br>
 
108
&mdash; Built-in Function: <var>val</var> = <b>page_output_immediately</b> (<var>new_val</var>)<var><a name="index-page_005foutput_005fimmediately-673"></a></var><br>
 
109
<blockquote><p>Query or set the internal variable that controls whether Octave sends
 
110
output to the pager as soon as it is available.  Otherwise, Octave
 
111
buffers its output and waits until just before the prompt is printed to
 
112
flush it to the pager. 
 
113
</p></blockquote></div>
 
114
 
 
115
   <p><a name="doc_002dfflush"></a>
 
116
 
 
117
<div class="defun">
 
118
&mdash; Built-in Function:  <b>fflush</b> (<var>fid</var>)<var><a name="index-fflush-674"></a></var><br>
 
119
<blockquote><p>Flush output to <var>fid</var>.  This is useful for ensuring that all
 
120
pending output makes it to the screen before some other event occurs. 
 
121
For example, it is always a good idea to flush the standard output
 
122
stream before calling <code>input</code>.
 
123
 
 
124
        <p><code>fflush</code> returns 0 on success and an OS dependent error value
 
125
(&minus;1 on unix) on error.
 
126
        <pre class="sp">
 
127
     
 
128
     </pre>
 
129
     <strong>See also:</strong> fopen, fclose. 
 
130
</p></blockquote></div>
 
131
 
 
132
<!-- FIXME - maybe this would be a good place to describe the -->
 
133
<!-- following message: -->
 
134
<!-- warning: connection to external pager (pid = 9334) lost - -->
 
135
<!-- warning: pending computations and output may be lost -->
 
136
<!-- warning: broken pipe -->
 
137
   </body></html>
 
138