The curses library supplies a terminal-independent screen-painting and keyboard-handling facility for text-based terminals.