You could use ncurses if you wanted to. http://en.wikipedia.org/wiki/Ncurses