Skip to content

Instantly share code, notes, and snippets.

@mattearly
Last active February 18, 2017 16:57
Show Gist options
  • Save mattearly/c4a88fa450e6cab74729bb924526f1a1 to your computer and use it in GitHub Desktop.
Save mattearly/c4a88fa450e6cab74729bb924526f1a1 to your computer and use it in GitHub Desktop.
// be sure you have ncurses installed
// compile with 'g++ ncurses_hello_world.cpp.cc -lcurses'
#include <ncurses.h>
int main()
{
initscr(); /* Start curses mode */
printw("Hello World !!!"); /* Print Hello World */
refresh(); /* Print it on to the real screen */
getch(); /* Wait for user input */
endwin(); /* End curses mode */
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment