#include <ncurses.h> . . . compile and link: gcc <program file> -lncurses |
Example 1. The Hello World !!! Program
/* File Path: basics/hello_world.c */ #include <ncurses.h> int main() { initscr(); /* Start curses mode */ printw("Hello World !!!"); /* Print Hello World */ refresh(); /* Print it on to the real screen */ endwin(); /* End curses mode */ return 0; } |