# File lib/rbreadline.rb, line 2057 def rl_tty_set_default_bindings(kmap) h = {} retry_if_interrupted do h = Hash[*`stty -a`.scan(/(\w+) = ([^;]+);/).flatten] end h.each {|k,v| v.gsub!(/\^(.)/){($1[0].ord ^ ((?a..?z).include?($1[0]) ? 0x60 : 0x40)).chr}} kmap[h['erase']] = :rl_rubout kmap[h['kill']] = :rl_unix_line_discard kmap[h['werase']] = :rl_unix_word_rubout kmap[h['lnext']] = :rl_quoted_insert end