Control a terminal's display
The ncurses library provides a set of functions that you can use to control a terminal's display. Use the -l ncurses option to qcc to link against this library.
For more information, see <ncurses.h>, as well as Programming with curses by John Strang, published by O'Reilly Media.