Sha256: 638bda6defc7afc3042066d7d9749a15bb53d533529003ae4a48f22ed9fee50a
Contents?: true
Size: 365 Bytes
Versions: 23
Compression:
Stored size: 365 Bytes
Contents
win = RubyText.window(6, 30, 2, 5, true, fg: :yellow, 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
23 entries across 23 versions & 1 rubygems