Source Code File 12-05_scrup3
12-05_scrup3.c
#include <ncurses.h>
   
int main()
{   
    int y;
    initscr();
    scrollok(stdscr,TRUE);
    for(y=0;y<=LINES;y++)
            mvprintw(y,0,"Line %d",y);
    refresh();
    getch();
    
    scrl(3);
    refresh();
    getch();
    
    endwin();
    return 0;
}
	Output Screenshot

    (Click image to see result.)
Notes
* After the initial image is displayed (above), press any key to see the screen scroll up three lines of text.
Copyright © 1997-2025 by QPBC.
All rights reserved
