class HighLine::Terminal

def raw_no_echo_mode_exec

then restore the terminal state.
Yieds a block to be executed in Raw No Echo mode and
def raw_no_echo_mode_exec
  raw_no_echo_mode
  yield
ensure
  restore_mode
end