Some functions for use with a curses library like Ncurses