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

Version Path
delano-drydock-0.6.2 lib/mixins/object.rb
delano-drydock-0.6.3 lib/drydock/mixins/object.rb
delano-drydock-0.6.5 lib/drydock/mixins/object.rb
delano-drydock-0.6.6 lib/drydock/mixins/object.rb
delano-drydock-0.6.7 lib/drydock/mixins/object.rb
delano-drydock-0.6.8 lib/drydock/mixins/object.rb
bone-0.3.2 vendor/drydock-0.6.8/lib/drydock/mixins/object.rb
bone-0.3.1 vendor/drydock-0.6.8/lib/drydock/mixins/object.rb
bone-0.3.0 vendor/drydock-0.6.8/lib/drydock/mixins/object.rb
bone-0.2.6 vendor/drydock-0.6.8/lib/drydock/mixins/object.rb
drydock-0.6.9 lib/drydock/mixins/object.rb
bone-0.2.5 vendor/drydock-0.6.8/lib/drydock/mixins/object.rb
bone-0.2.4 vendor/drydock-0.6.8/lib/drydock/mixins/object.rb
bone-0.2.3 vendor/drydock-0.6.8/lib/drydock/mixins/object.rb
bone-0.2.2 vendor/drydock-0.6.8/lib/drydock/mixins/object.rb
bone-0.2.1 vendor/drydock-0.6.8/lib/drydock/mixins/object.rb
drydock-0.6.7 lib/drydock/mixins/object.rb
drydock-0.6.8 lib/drydock/mixins/object.rb
drydock-0.6.6 lib/drydock/mixins/object.rb
drydock-0.6.3 lib/mixins/object.rb