diff --git a/lib/reline/terminfo.rb b/lib/reline/terminfo.rb index 92c6ffc9e5..1029d7957f 100644 --- a/lib/reline/terminfo.rb +++ b/lib/reline/terminfo.rb @@ -57,7 +57,11 @@ module Reline::Terminfo end def self.tigetstr(capname) - @tigetstr.(capname).to_s + result = @tigetstr.(capname).to_s + def result.tiparm(*args) # for method chain + Reline::Terminfo.tiparm(self, *args) + end + result end def self.tiparm(str, *args)