Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/core/ncurses/src/hello.c
1070 views
1
/*
2
3
Hello world of ncurses, from
4
https://tldp.org/HOWTO/pdf/NCURSES-Programming-HOWTO.pdf
5
6
*/
7
8
#include <ncurses.h>
9
10
int main(int argc, char *argv[]) {
11
initscr(); /* Start curses mode */
12
printw("Hello CoWasm !!!\n"); /* Print Hello World */
13
refresh(); /* Print it on to the real screen */
14
getch(); /* Wait for user input */
15
endwin(); /* End curses mode */
16
return 0;
17
}
18
19