Ncurses Notes from the series on the Casual Coder youtube channel.

Tutorial 0: init screen

#include <ncurses.h>
using namespace std;

main() {
  initscr();
  printw("Hello World!");
  refresh();
  int c = getch();
  printw("%d", c);
  getch();
  endwin();
  return 0;
}

Tutorial 1: move

  initscr();
  
  int x, y;
  x = y = 10;
  move(y,x); // note y first, x second

  int c = getch();
  move(0,0);
  printw("%d",c);

  mvprintw(2,3,"%d",c);
  refresh();

  getch();
  clear();

Tutorial 2: windows basics

  WINDOWS *