Sha256: 40c51b31b3926d1de90a8a917414348cde04c638f63770f1868321bb1eb9dc2b
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
win = RubyText.window(6, 30, 2, 5, true, fg: :black, bg: :blue) win.puts "We default to cbreak mode, so that characters are " win.puts "accepted instantly, but control-C still works." sleep 2 win.puts "\nIf we set raw mode, control-C is disallowed." RubyText.set(:raw) win.puts "\nGo ahead, type a ^C." sleep 5 win.puts "\nI'm still here." RubyText.set(:_raw)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubytext-0.0.28 | examples/prog11.rb |