Skip to content

Commit

Permalink
Remove mention of win32console from ansicon message
Browse files Browse the repository at this point in the history
Per the comment above this message, it should only appear for people
who can't install win32console anyway, so mentioning win32console is
pointless.
  • Loading branch information
rf- committed May 5, 2014
1 parent dd2d9b9 commit 0963398
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/pry/pry_class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,11 @@ def self.load_win32console
# only fail on jruby (where win32console doesn't work).
# Instead we'll recommend ansicon, which does.
rescue LoadError
warn <<-WARNING unless Pry.config.windows_console_warning == false
Can not require win32console.
For a better Pry experience on Windows, please use ansicon: https://github.com/adoxa/ansicon
(win32console has been deprecated).
If you use alternative to win32console or ansicon and want not to display this warning, you can
add "Pry.config.windows_console_warning=false" to your .pryrc.
warn <<-WARNING if Pry.config.windows_console_warning
For a better Pry experience on Windows, please use ansicon:
https://github.com/adoxa/ansicon
If you use an alternative to ansicon and don't want to see this warning again,
you can add "Pry.config.windows_console_warning = false" to your .pryrc.
WARNING
end
end
Expand Down

0 comments on commit 0963398

Please sign in to comment.