Method: VMAgui#debug_idle_func

Defined in:
lib/vimamsa/gui.rb

#debug_idle_funcObject



436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
# File 'lib/vimamsa/gui.rb', line 436

def debug_idle_func
  return false if @shutdown == true
  if Time.now - @last_debug_idle > 1
    @last_debug_idle = Time.now
    # puts "DEBUG IDLE #{Time.now}"
    # @view.check_controllers
  end

  ctrl_fn = File.expand_path(get_dot_path("ripl_ctrl"))
  # Allows to debug in case keyboard handling is lost
  if File.exist?(ctrl_fn)
    File.delete(ctrl_fn)
    start_ripl
  end

  sleep 0.02
  return true
end