fix readline unsupported case