# File lib/pry/pry_class.rb, line 101 def self.load_win32console begin require 'win32console' # The mswin and mingw versions of pry require win32console, so this should # only fail on jruby (where win32console doesn't work). # Instead we'll recommend ansicon, which does. rescue LoadError warn "For a better Pry experience on Windows, please use ansicon:\nhttps://github.com/adoxa/ansicon\nIf you use an alternative to ansicon and don't want to see this warning again,\nyou can add \"Pry.config.windows_console_warning = false\" to your .pryrc.\n" if Pry.config.windows_console_warning end end