scrolling () . First you must set scrollok (win, TRUE). In fact, if you just want to cut data like a regular terminal, you need to set scrollok () yourself.
#include <ncurses.h> int main(void) { int i = 0; initscr(); scrollok(stdscr,TRUE); while(1) { printw("%d - lots and lots of lines flowing down the terminal\n", i); ++i; refresh(); } endwin(); return 0; }
source share