/ Published in: C
<pre><code>$ gcc foo.c -lcurses
$ ./a.out</pre><code>
$ ./a.out</pre><code>
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#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; }