# File lib/pry-remote-em/client/keyboard.rb, line 6 def initialize(c) @con = c # TODO check actual current values to determine if it's enabled or not @buff_enabled = true # On EM < 1.0.0.beta.4 the keyboard handler and Termios don't work well together # readline will complain that STDIN isn't a tty after Termios manipulation, so # just don't let it happen @manip_buff = Gem.loaded_specs["eventmachine"].version >= Gem::Version.new("1.0.0.beta.4") bufferio(false) # TODO retain the old SIGINT handler and reset it later trap :SIGINT do @con.send_data({:ssc => true}) end end