Reimplement prompt_yn in terms of prompt_chars.

  This simplifies coding.