Sha256: 5f19f36bc84613a557471e702ecc2d02b1c2ff5584fe246cb056abae5a14b1e9

Contents?: true

Size: 326 Bytes

Versions: 42

Compression:

Stored size: 326 Bytes

Contents

win = RubyText.window(6, 30, r: 3, c: 13, fg: Yellow, bg: Blue)

win.puts "You can write to a window..."

sleep 2
11.times { STDSCR.puts }
STDSCR.puts "...or you can write to STDSCR (standard screen)"

sleep 1
puts "STDSCR is the default receiver."

sleep 2
STDSCR.go 6, 0
puts "Nothing stops you from overwriting a window."

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
rubytext-0.1.29 examples/stdscr.rb
rubytext-0.1.28 examples/stdscr.rb
rubytext-0.1.26 examples/stdscr.rb
rubytext-0.1.25 examples/stdscr.rb
rubytext-0.1.23 examples/stdscr.rb
rubytext-0.1.22 examples/stdscr.rb
rubytext-0.1.21 examples/stdscr.rb
rubytext-0.1.20 examples/stdscr.rb
rubytext-0.1.19 examples/stdscr.rb
rubytext-0.1.18 examples/stdscr.rb
rubytext-0.1.17 examples/stdscr.rb
rubytext-0.1.16 examples/stdscr.rb
rubytext-0.1.15 examples/stdscr.rb
rubytext-0.1.14 examples/stdscr.rb
rubytext-0.1.13 examples/stdscr.rb
rubytext-0.1.12 examples/stdscr.rb
rubytext-0.1.11 examples/stdscr.rb
rubytext-0.1.10 examples/stdscr.rb
rubytext-0.1.8 examples/stdscr.rb
rubytext-0.1.7 examples/stdscr.rb