Sha256: 8a87ac3d1f56b3ad9e1f686381be7dc786308a83580e4b6e8fccfd2c31b301f0
Contents?: true
Size: 739 Bytes
Versions: 7
Compression:
Stored size: 739 Bytes
Contents
puts "\n Methods such as go, rcprint, and putch \n can accept symbols such as" puts " :top :bottom :left :right :center" puts "\n Of course, printing starting at the far right \n can be problematic." win = RubyText.window(7, 29, 1, 60, fg: Red, bg: Black) win.putch "1", r: :bottom, c: :left; sleep 0.4 win.go :center, :left; win.puts "abc"; sleep 0.4 win.go :top, :left; win.puts "def"; sleep 0.4 win.rcprint :top, :center, "4"; sleep 0.4 others = [[:top, :right, "5"], [:center, :right, "6"], [:bottom, :right, "7"], [:bottom, :center, "8"], [:center, :center, "9"]] others.each do |args| r, c, ch = *args win.go r,c win.putch(ch) sleep 0.4 end
Version data entries
7 entries across 7 versions & 1 rubygems