display.cc
/*
** scroll_listing_up_N - scrolls the listing window up n lines.
**                       The cursor is left in column 0 of the first
**                       line to scroll into the window.
**                       Must have CS capability.
*/
scrolls the listing window up n lines.
The cursor is left in column 0 of the first
line to scroll into the window.
Must have CS capability.
scrolls the listing window up n lines . The cursor is left in column 0 of the first line to scroll into the window . Must have CS capability .
void scroll_listing_up_N(int n)
{
    output_string_capability(tgoto(CS, rows()-3, 0));
    move_cursor(rows()-3, 0);
    for (int i = 0; i < n; i++) cursor_down();
    output_string_capability(tgoto(CS, rows()-1, 0));
    move_cursor(rows()-2-n, 0);
}
void scroll_listing_up_N ( int n ) { output_string_capability ( tgoto ( CS , rows ( ) - 3 , 0 ) ) ; move_cursor ( rows ( ) - 3 , 0 ) ; for ( int i = 0 ; i < n ; i ++ ) cursor_down ( ) ; output_string_capability ( tgoto ( CS , rows ( ) - 1 , 0 ) ) ; move_cursor ( rows ( ) - 2 - n , 0 ) ; }
scroll_listing_up_N - scrolls the listing window up n lines.
scroll_listing_up_N - scrolls the listing window up n lines .