SET(SCROLLING)
Determines scrolling of existing lines in a window to make room for new
lines at the bottom or top. As the window is scrolled, the cursor
position remains in the same column.
Syntax
SET (SCROLLING, window, {OFF | ON}, integer1, integer2, integer3)
Parameters
window The window in which scrolling limits are to be set.
OFF Disables scrolling. The screen is repainted each time a
scroll would otherwise occur.
ON Enables scrolling.
integer1 The offset from the top screen line of the window,
identifying the top limit of an area in which the cursor can
move as it tracks the current character position. If the
cursor moves above this screen line, lines in the window
scroll down so the cursor stays within the limits of the
cursor area.
integer2 The offset from the bottom screen line of the window,
identifying the bottom limit of an area in which the cursor
can move as it tracks the current character position. If
the cursor moves below this screen line, lines in the window
scroll up so the cursor stays within the limits of the
cursor area.
integer3 A number specifying how many lines from the top or bottom of
the cursor area (defined by integer1 and integer2) the
cursor should be positioned when a window is scrolled. For
example, if the bottom of the cursor area is 14 and integer3
is 0, when text is scrolled up, the cursor is put on screen
line 14. If integer3 is 3, the cursor is put on screen line
11.
Examples
1. SET (SCROLLING, main_window, ON, 0, 0, 2);
Causes the main window to scroll as follows: when the cursor reaches
the top or bottom of the window, lines are moved off the screen to
make room for new lines. The cursor is positioned on a line that is
offset 2 lines from the either the top or bottom, depending on the
direction in which you are scrolling.
2. SET (SCROLLING, main_window, ON, 0, 0, 2);
Does the same thing as Example 1 -- except, if the main window is 21
lines long, the cursor is repositioned at the top or bottom of the
window, depending on the direction in which you are scrolling. Thus,
each time a scrolling occurs, an entire window's worth of text
appears.
Related topics
SCROLL SET(CROSS_WINDOW_BOUNDS) SET(FORWARD) SET(REVERSE)