prompt(): handle tab characters