Posted By

mustam on 08/31/09


Tagged

helloworld curses TUI


Versions (?)

Hello World @ ncurses(TUI Library)


 / Published in: C
 

$ gcc foo.c -lcurses
$ ./a.out

  1. #include<stdio.h>
  2. #include<curses.h>
  3. #include<sys/time.h>
  4.  
  5. int main()
  6. {
  7. initscr();
  8. printw("Hello, World!\nWait 3 sec...");
  9. refresh();
  10. sleep(3);
  11. endwin();
  12.  
  13. return 0;
  14. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: chcn001 on April 12, 2010

采用php开发终端字符界面 http://www.phpcoding.cn/2009/06/01/dev-terminal-by-php/

这里有一个关于ncurses的具体实例。。。

Posted By: chcn001 on April 12, 2010

采用php开发终端字符界面 http://www.phpcoding.cn/2009/06/01/dev-terminal-by-php/

这里有一个关于ncurses的具体实例。。。

You need to login to post a comment.