code: def input_yn(conf_mess):
      
      ui_erase_ln()
      ui_print(conf_mess)
      with term.cbreak():
          input_flush()
          val = input_by_key()
      return bool(val.lower() == 'y')
docs: Print Confirmation Message and Get Y/N response from user.