int wscrl(WINDOW *win, int n);
Description:
- scroll() causes the window to scroll up one line. This involves
+ scroll() causes the window to scroll up one line. This involves
moving the lines in the window data strcture.
-
- With a positive n, scrl() and wscrl() scroll the window up n
- lines (line i + n becomes i); otherwise they scroll the window
+
+ With a positive n, scrl() and wscrl() scroll the window up n
+ lines (line i + n becomes i); otherwise they scroll the window
down n lines.
-
- For these functions to work, scrolling must be enabled via
- scrollok(). Note also that scrolling is not allowed if the
+
+ For these functions to work, scrolling must be enabled via
+ scrollok(). Note also that scrolling is not allowed if the
supplied window is a pad.
Return Value:
dir = -1;
}
- for (l = 0; l < (n * dir); l++)
+ for (l = 0; l < (n * dir); l++)
{
temp = win->_y[start];