class HighLine::Terminal

def save_stty

Saves terminal state using shell stty command.
def save_stty
  @stty_save = begin
                 `stty -g`.chomp if input.tty?
               rescue StandardError
                 nil
               end
end