Method: InLine::Terminal#update
- Defined in:
- lib/inline/terminal.rb
#update ⇒ Object
Update the terminal escape sequences. This method is called automatically by InLine::Editor#bind().
75 76 77 78 79 80 81 82 |
# File 'lib/inline/terminal.rb', line 75 def update @keys.each_value do |k| l = k.length if l > 1 then @escape_sequences << k unless @escape_sequences.include? k end end end |