Sha256: 395d405ca1f67d0b1d3e41771a23c4a2e37812a19db037edb039e34087521a9d

Contents?: true

Size: 744 Bytes

Versions: 6

Compression:

Stored size: 744 Bytes

Contents

Shoes.app do 
  stack do
    para "Game Mode Terminal test"
    button "do it" do
      columns = 80
      rows = 24
      Shoes.terminal columns: columns, rows: rows, fontsize: 12, title: "Test Cursor Movements",
        mode: 'game'
      ruler1 = ''
      ruler2 = ''
      (1..columns).each do |i|
        tens = i/10
        ones = i%10
        ruler1 << (tens == 0 ? ' ' : tens.to_s)
        ruler2 << ones.to_s
      end
      puts ruler1
      puts ruler2
      (3..rows+2).each {|row| puts row }
      (3..rows).each { |ln| $stdout.write "\033[#{ln};1H#{ln}"; $stdout.flush }
      $stdout.write "\033[10;10H10,10\033[20;20H20,20"
      $stdout.flush
      $stdout.write "\033[24;79HEND\033[1;1H"
      $stdout.flush
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
scarpe-0.4.0 examples/legacy/not_checked/shoes3-tests/terminal/cursor.rb
scarpe-0.3.0 examples/legacy/not_checked/shoes3-tests/terminal/cursor.rb
scarpe-0.2.2 examples/legacy/not_checked/shoes3-tests/terminal/cursor.rb
lacci-0.2.1 examples/legacy/not_checked/shoes3-tests/terminal/cursor.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes3-tests/terminal/cursor.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes3-tests/terminal/cursor.rb