add curses code