/ Published in: C
$ gcc foo.c -lcurses
$ ./a.out
Expand |
Embed | Plain Text
#include<stdio.h> #include<curses.h> #include<sys/time.h> int main() { initscr(); printw("Hello, World!\nWait 3 sec..."); refresh(); sleep(3); endwin(); return 0; }
Comments
Subscribe to comments
You need to login to post a comment.

采用php开发终端字符界面 http://www.phpcoding.cn/2009/06/01/dev-terminal-by-php/
这里有一个关于ncurses的具体实例。。。
采用php开发终端字符界面 http://www.phpcoding.cn/2009/06/01/dev-terminal-by-php/
这里有一个关于ncurses的具体实例。。。