Removed curses.h dependencies.