Hello World @ ncurses(TUI Library)


/ Published in: C
Save to your folder(s)

<pre><code>$ gcc foo.c -lcurses
$ ./a.out</pre><code>


Copy this code and paste it in your HTML
  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

You need to login to post a comment.