#include <curses.h>

int main()
{
   int i;
   initscr();
   for(i=0;i<30; i++)
     {
       printw("Ohne Funktion scrollok()\n");
       halfdelay(2);
       getch();
     }
   clear();
   refresh();

   scrollok(stdscr,TRUE);
   for(i=0;i<30; i++)
     {
       printw("Mit Funktion scrollok()\n");
       halfdelay(2);
       getch();
     }
   getch();
   endwin();
   return 0;
}