Created
August 24, 2012 14:22
-
-
Save larzconwell/3451177 to your computer and use it in GitHub Desktop.
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> | |
int main(int argc, char *argv[]) { | |
initscr(); | |
// Create window with max rows, and cols | |
WINDOW *win; | |
win = newwin(0, 0, 0, 0); // rows, cols, x, y | |
wrefresh(win); | |
// Print "hello bitches" to win | |
wprintw(win, "hello bitches!"); | |
wrefresh(win); | |
// Clean up and exit ncurses windows | |
delwin(win); | |
endwin(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment