minimal dumb-terminal emulation program
