ok so I'm creating a basic server software and I would like to implement the interface in ncurses such that whenever a client connects it would print out a message on the ncurses window, if there's an error it would also print out a message. Each message would be on a newline but when the window fills up, I would like to make it scroll upwards one line at a time, I would also like the user to be able to press up arrow or down arrow to navigate the log messages so how can I implement such functionality, what functions do I call, etc?