Sha256: 8dcf0c9e2038222d5508d14b20319273c1e5a602d56c8cf1321e322e9dc2e763
Contents?: true
Size: 460 Bytes
Versions: 5
Compression:
Stored size: 460 Bytes
Contents
win = RubyText.window(10, 45, 1, 20, fg: Black, bg: Red) win.puts "This very crude menu is also EXPERIMENTAL." win.puts "It knows up, down, Enter, and Escape.\n " win.puts "Press any key to display the menu..." win.puts getch days = %w[Monday Tuesday Wednesday Thursday Friday] num, day = RubyText.menu(win: win, r: 1, c: 5, items: days) puts if day.nil? win.puts "You picked nothing!" else win.puts "You picked item #{num} which is #{day.inspect}" end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rubytext-0.0.84 | examples/prog21.rb |
rubytext-0.0.83 | examples/prog21.rb |
rubytext-0.0.82 | examples/prog21.rb |
rubytext-0.0.81 | examples/prog21.rb |
rubytext-0.0.80 | examples/prog21.rb |