The mvprintw(3Curses) function allows you to position the cursor to x y coordinates and print a string in the window using the C printf(3C) syntax.
#include <curses.h>
main()
{
char user_name[64];
initscr();
mvprintw(12, 30, "Center of the screen");
mvprintw(LINES -...