Skip to content

Commit

Permalink
Terminfo.tigetstr should be able to receive tiparm in method chain
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed May 19, 2021
1 parent 1e287d1 commit 4a3e308
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/reline/terminfo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ def self.setupterm(term, fildes)
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)
Expand Down

0 comments on commit 4a3e308

Please sign in to comment.