Sha256: 4529f6a63cd62ab8613b3858f2f4081d68c50c7dd25b36f55fe625bcb5c85b7c

Contents?: true

Size: 357 Bytes

Versions: 32

Compression:

Stored size: 357 Bytes

Contents

win = RubyText.window(6, 30, 2, 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

32 entries across 32 versions & 1 rubygems

Version Path
rubytext-0.0.84 examples/prog11.rb
rubytext-0.0.83 examples/prog11.rb
rubytext-0.0.82 examples/prog11.rb
rubytext-0.0.81 examples/prog11.rb
rubytext-0.0.80 examples/prog11.rb
rubytext-0.0.79 examples/prog11.rb
rubytext-0.0.78 examples/prog11.rb
rubytext-0.0.77 examples/prog11.rb
rubytext-0.0.76 examples/prog11.rb
rubytext-0.0.75 examples/prog11.rb
rubytext-0.0.74 examples/prog11.rb
rubytext-0.0.73 examples/prog11.rb
rubytext-0.0.72 examples/prog11.rb
rubytext-0.0.71 examples/prog11.rb
rubytext-0.0.70 examples/prog11.rb
rubytext-0.0.69 examples/prog11.rb
rubytext-0.0.68 examples/prog11.rb
rubytext-0.0.67 examples/prog11.rb
rubytext-0.0.66 examples/prog11.rb
rubytext-0.0.65 examples/prog11.rb