lib/sample_cmdlet_patterns/commands/screen_attributes.rb
def execute(input: $stdin, output: $stdout)
        values = [
          ['Screen size', screen.size],
          ['Screen width', screen.width],
          ['Screen [width] columns', screen.columns],
          ['Screen [width] cols', screen.cols],
          ['Screen height', screen.height],
          ['Screen [height] rows', screen.rows],
          ['Screen [height] lines', screen.lines],
        ]

        pretty_table('Screen Dimensions?', %w[title value], values)

        :gui
      end
# Execute ScreenAttributes subcommand taking input from
# a input stream and writing to output stream
#
# sample: output.puts 'OK'
Execute ScreenAttributes subcommand taking input from
a input stream and writing to output stream


Execute ScreenAttributes subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        values = [
          ['Screen size', screen.size],
          ['Screen width', screen.width],
          ['Screen [width] columns', screen.columns],
          ['Screen [width] cols', screen.cols],
          ['Screen height', screen.height],
          ['Screen [height] rows', screen.rows],
          ['Screen [height] lines', screen.lines],
        ]
        pretty_table('Screen Dimensions?', %w[title value], values)
        :gui
      end
def execute ( input : $stdin , output : $stdout ) values = [ [ 'Screen size' , screen . size ] , [ 'Screen width' , screen . width ] , [ 'Screen [width] columns' , screen . columns ] , [ 'Screen [width] cols' , screen . cols ] , [ 'Screen height' , screen . height ] , [ 'Screen [height] rows' , screen . rows ] , [ 'Screen [height] lines' , screen . lines ] , ] pretty_table ( 'Screen Dimensions?' , %w[ title value ] , values ) :gui end
Execute ScreenAttributes subcommand taking input from
a input stream and writing to output stream
Execute ScreenAttributes subcommand taking input from a input stream and writing to output stream
input
output