Fallback to Reline when require 'readline' fails#1076
Conversation
Require readline may fail because it is a bundled gem in 3.5.0.dev.
| const_set(:Readline, ::Readline) | ||
| rescue LoadError | ||
| const_set(:Readline, ::Reline) | ||
| end |
There was a problem hiding this comment.
Adds ReadlineInputMethod::Readline = ::Readline or ::Reline
because we don't want to pollute the top level by adding constant ::Readline when require 'readline' fails.
|
To use GNU readline, now we need to add both Maybe we can require |
|
Is there any feature that readline does better than reline? Does it make sense to still allow both types of input methods going forward 🤔 |
|
I didn't thought of that. Maybe it's time to use Reline also in (Off topic: |
Require readline may fail because it is a bundled gem in 3.5.0.dev.