rendered paste body#include <curses.h>int main() { // Initialize the curses library initscr(); raw(); (void) noecho(); nonl(); intrflush( stdscr, FALSE ); (void) keypad( stdscr, TRUE ); // make sure the cursor is visible curs_set( 1 ); // clear the screen wclear( stdscr ); // move the cursor to (x, y) = (10, 5) wmove( stdscr, 5, 10 ); // insert characters (instead of waddstr()) winsstr( stdscr, "Skriver text mitt på skärmen" ); // update wrefresh( stdscr ); // wait for user to> press a single key wgetch( stdscr ); // all done endwin(); return 0; }