Emulate a unix terminal