Created
March 5, 2019 18:09
-
-
Save tbhaxor/4509725fd1362df71aefea804a10e2e6 to your computer and use it in GitHub Desktop.
Ncurses : Hello World
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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