Moved curses code intro NCApplication instead of main.