diff options
author | aycabta <aycabta@gmail.com> | 2021-05-19 17:57:30 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-06-21 17:58:48 +0900 |
commit | 60d1d6aa897860cb2994d873956dacdf1678269a (patch) | |
tree | 79be81930f1046cba83e48813a3cca8832bbe416 | |
parent | 5e09da2f7a29d076ffefb8585758fc1fbee2ac08 (diff) |
[ruby/reline] Terminfo.tigetstr should be able to receive tiparm in method chain
https://github.com/ruby/reline/commit/4a3e308163
-rw-r--r-- | lib/reline/terminfo.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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) |