handle dumb terminals