catacurse stdscr should probably be an extern.