code: def yesno(self, s, yesno_callback, casual=False):
          
          self.write(s)
          self.yesno_callback = yesno_callback
          self.yesno_casual = casual
docs: Ask a question and prepare to receive a yes-or-no answer.