Sha256: 7f7ca7a8ad00c85956d5d905b1137f94c405612f24bad9fbc2145d6b8d1d1c4c
Contents?: true
Size: 504 Bytes
Versions: 21
Compression:
Stored size: 504 Bytes
Contents
class Object # Executes tput +capnam+ with +args+. Returns true if tcap gives # 0 exit status and false otherwise. # # tput :cup, 1, 4 # $ tput cup 1 4 # def tput(capnam, *args) system("tput #{capnam} #{args.flatten.join(' ')}") end # Executes tput +capnam+ with +args+. Returns the output of tput. # # tput_val :cols # => 16 # $ tput cols # => 16 # def tput_val(capnam, *args) `tput #{capnam} #{args.flatten.join(' ')}`.chomp end end
Version data entries
21 entries across 21 versions & 3 rubygems