Scrolling content in ncurses field

I have a window (created using newwin) and creating a window ( box (WINDOW *, int, int)).

I read and write (on FD 0 and 1) under the field, and I get (char *)from the socket, I wrote this tab in the field.

When I wrote 195 lines, I come to the end of the window.

How to scroll existing text so that new text prints below?

+3
source share
1 answer

Use the function scrollok(WINDOW *win, bool bf);.

scrollok(win, TRUE);

On the man page:

scrollok , , , . , (bf ), . , (bf - ), ( , , idlok).


btw, irc c, ncurses (pic), , - code.

+2

All Articles