Sha256: 8515fc40f5648730bb4316357cfe59d251d2d6659480b032984bc16f2228d509
Contents?: true
Size: 363 Bytes
Versions: 42
Compression:
Stored size: 363 Bytes
Contents
win = RubyText.window(6, 30, r: 2, c: 5, 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
42 entries across 42 versions & 1 rubygems