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

Version Path
rubytext-0.0.51 examples/prog11.rb
rubytext-0.0.50 examples/prog11.rb
rubytext-0.0.49 examples/prog11.rb
rubytext-0.0.48 examples/prog11.rb
rubytext-0.0.47 examples/prog11.rb
rubytext-0.0.46 examples/prog11.rb
rubytext-0.0.45 examples/prog11.rb
rubytext-0.0.44 examples/prog11.rb
rubytext-0.0.43 examples/prog11.rb
rubytext-0.0.42 examples/prog11.rb
rubytext-0.0.41 examples/prog11.rb
rubytext-0.0.40 examples/prog11.rb
rubytext-0.0.39 examples/prog11.rb
rubytext-0.0.38 examples/prog11.rb
rubytext-0.0.37 examples/prog11.rb
rubytext-0.0.36 examples/prog11.rb
rubytext-0.0.35 examples/prog11.rb
rubytext-0.0.34 examples/prog11.rb
rubytext-0.0.33 examples/prog11.rb
rubytext-0.0.32 examples/prog11.rb