Skip to content

Instantly share code, notes, and snippets.

@tbhaxor
Created March 5, 2019 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbhaxor/4509725fd1362df71aefea804a10e2e6 to your computer and use it in GitHub Desktop.
Save tbhaxor/4509725fd1362df71aefea804a10e2e6 to your computer and use it in GitHub Desktop.
Ncurses : Hello World
#include <ncurses.h>
using namespace std;
int main(int argc, char ** argv)
{
// init screen and sets up screen
initscr();
// print to screen
printw("Hello World");
// refreshes the screen
refresh();
// pause the screen output
getch();
// deallocates memory and ends ncurses
endwin();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment