curses programming
#include <ncurses.h> int main() { initscr();/* Start curses mode */ printw("Hello World !!!"); /* Print Hello World */ refresh(); /* Print it on to the real screen */ getch(); /* Wait for user input */ endwin(); /* End curses mode */ return 0; }
-
- $ gcc -Wall test.c -lncurses
- CentOSの場合
# yum install gcc # yum install ncurses-devel