Parent

Methods

Object

Public Instance Methods

tput(capnam, *args) click to toggle source

Executes tput capnam with args. Returns true if tcap gives 0 exit status and false otherwise.

tput :cup, 1, 4
$ tput cup 1 4
# File lib/drydock/mixins/object.rb, line 9
def tput(capnam, *args)
  system("tput #{capnam} #{args.flatten.join(' ')}")
end
tput_val(capnam, *args) click to toggle source

Executes tput capnam with args. Returns the output of tput.

tput_val :cols  # => 16
$ tput cols     # => 16
# File lib/drydock/mixins/object.rb, line 18
def tput_val(capnam, *args)
  `tput #{capnam} #{args.flatten.join(' ')}`.chomp
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.