Curses

Curses is a library for optimised drawing of characters on a (possibly virtual) terminal. It is used as a display library by text-based games such as Nethack. The most commonly used implementation on modern unix-like systems is ncurses.