1 .\" $NetBSD: appen.B,v 1.4 1998/01/09 04:12:04 perry Exp $
3 .\" Copyright (c) 1980, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)appen.B 8.1 (Berkeley) 6/8/93
32 .ie t .oh '\*(Ln Appendix B''PS1:19-%'
33 .eh 'PS1:19-%''\*(Ln Appendix B'
34 .el .he ''\fIAppendix B\fR''
41 .sh 1 "The WINDOW structure"
43 The WINDOW structure is defined as follows:
51 All variables not normally accessed directly by the user
52 are named with an initial
54 to avoid conflicts with the user's variables.
58 are the current \*y for the window.
59 New characters added to the screen
60 are added at this point.
64 are the maximum values allowed for
65 .Vn \*_cury\*,\*_curx ). (
69 are the starting \*y on the terminal for the window,
77 are measured relative to
78 .Vn \*_begy\*,\*_begx ), (
79 not the terminal's home.
82 tells if a clear-screen sequence is to be generated
86 This is only meaningful for screens.
87 The initial clear-screen for the first
89 call is generated by initially setting clear to be TRUE for
91 which always generates a clear-screen if set,
92 irrelevant of the dimensions of the window involved.
94 is TRUE if the current \*y and the cursor
95 are to be left after the last character changed on the terminal,
96 or not moved if there is no change.
99 if scrolling is allowed.
102 is a pointer to an array of lines which describe the terminal.
121 can have one or more values
124 For windows that are not subwindows,
129 it points to the main window
130 to which the window is subsidiary.
132 is a pointer in a circularly linked list
133 of all the windows which are subwindows of the same main window,
134 plus the main window itself.
141 arrays which contain the index of the
142 first and last changed characters
145 is the x offset for the window
150 arrays for this window.
154 it is the difference between the starting point of the main window
155 and that of the subindow,
156 so that change markers can be set relative to the main window.
157 This makes these markers global in scope.
159 All subwindows share the appropriate portions of
165 with their main window.
168 says that the end of the line for this window
169 is also the end of a screen.
171 says that this window is a screen.
173 indicates that the last character of this screen
174 is at the lower right-hand corner of the terminal;
176 if a character was put there,
177 the terminal would scroll.
179 says that the width of a line is the same as the width of the terminal.
184 .Fn fflush "" "" stdout
185 should be called at the end of each
188 says that all characters added to the screen
189 are in standout mode.
191 is reserved for future use,
197 for lines on which there has been no change