entirely hide prompt if read-only

fixes #999