Skip to content

Instantly share code, notes, and snippets.

@larzconwell
Created August 24, 2012 14:22
Show Gist options
  • Save larzconwell/3451177 to your computer and use it in GitHub Desktop.
Save larzconwell/3451177 to your computer and use it in GitHub Desktop.
#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