daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Dec 9th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <ncurses.h>
  2.  
  3. int main(int argc, char *argv[]) {
  4.   initscr();
  5.  
  6.   // Create window with max rows, and cols
  7.   WINDOW *win;
  8.   win = newwin(0, 0, 0, 0); // rows, cols, x, y
  9.   wrefresh(win);
  10.  
  11.   // Print "hello bitches" to win
  12.   wprintw(win, "hello bitches!");
  13.   wrefresh(win);
  14.  
  15.   // Clean up and exit ncurses windows
  16.   delwin(win);
  17.   endwin();
  18.  
  19.   return 0;
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top