Sha256: b4c89264d6d896d9d2a01916fda92abe8a66344865ed237bf9f804e236c73fed

Contents?: true

Size: 437 Bytes

Versions: 12

Compression:

Stored size: 437 Bytes

Contents

win = RubyText.window(10, 50, 0, 5, true, 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

12 entries across 12 versions & 1 rubygems

Version Path
rubytext-0.0.51 examples/prog07.rb
rubytext-0.0.50 examples/prog07.rb
rubytext-0.0.49 examples/prog07.rb
rubytext-0.0.48 examples/prog07.rb
rubytext-0.0.47 examples/prog07.rb
rubytext-0.0.46 examples/prog07.rb
rubytext-0.0.45 examples/prog07.rb
rubytext-0.0.44 examples/prog07.rb
rubytext-0.0.43 examples/prog07.rb
rubytext-0.0.42 examples/prog07.rb
rubytext-0.0.41 examples/prog07.rb
rubytext-0.0.40 examples/prog07.rb