Method: HighLine#get_response_character_mode
- Defined in:
- lib/highline.rb
#get_response_character_mode(question) ⇒ String
Get response each character per turn
633 634 635 636 637 638 639 640 641 642 643 644 |
# File 'lib/highline.rb', line 633 def get_response_character_mode(question) terminal.raw_no_echo_mode_exec do response = terminal.get_character if question.overwrite erase_current_line else echo = question.get_echo_for_response(response) say("#{echo}\n") end question.format_answer(response) end end |