diff --git a/lib/reline/terminfo.rb b/lib/reline/terminfo.rb index 6885a0c6be..1eb371464b 100644 --- a/lib/reline/terminfo.rb +++ b/lib/reline/terminfo.rb @@ -1,4 +1,7 @@ begin + # Ignore warning `Add fiddle to your Gemfile or gemspec` in Ruby 3.4. + # terminfo.rb and ansi.rb supports fiddle unavailable environment. + verbose, $VERBOSE = $VERBOSE, nil require 'fiddle' require 'fiddle/import' rescue LoadError @@ -7,6 +10,8 @@ def self.curses_dl false end end +ensure + $VERBOSE = verbose end module Reline::Terminfo