Sha256: 405f8a17d5a6bd2e6e26e72c43eed2c3ff78ee75e4ae507ccd99e08b5f230269

Contents?: true

Size: 429 Bytes

Versions: 16

Compression:

Stored size: 429 Bytes

Contents

win = RubyText.window(10, 50, 0, 5, fg: Yellow, bg: Blue)

win.output do
  puts "Of course, #puts and #print are unaffected \nfor other receivers."

  out = File.new("/tmp/junk", "w")
  out.puts "Nothing to see here."
  sleep 2

  print "\nHowever, if you print to STDOUT or STDERR \nwithout redirection, "
  STDOUT.print "you will have some "
  STDERR.print "unexpected/undefined results "
  puts " in more ways than one."
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rubytext-0.0.68 examples/prog07.rb
rubytext-0.0.67 examples/prog07.rb
rubytext-0.0.66 examples/prog07.rb
rubytext-0.0.65 examples/prog07.rb
rubytext-0.0.64 examples/prog07.rb
rubytext-0.0.63 examples/prog07.rb
rubytext-0.0.62 examples/prog07.rb
rubytext-0.0.61 examples/prog07.rb
rubytext-0.0.60 examples/prog07.rb
rubytext-0.0.59 examples/prog07.rb
rubytext-0.0.58 examples/prog07.rb
rubytext-0.0.57 examples/prog07.rb
rubytext-0.0.56 examples/prog07.rb
rubytext-0.0.55 examples/prog07.rb
rubytext-0.0.54 examples/prog07.rb
rubytext-0.0.53 examples/prog07.rb