Sha256: 396741d03d727ac8360e94bbb6c7ef485d39f5a338746f6a8f63901f95f2c14a

Contents?: true

Size: 430 Bytes

Versions: 16

Compression:

Stored size: 430 Bytes

Contents

win = RubyText.window(10, 50, 2, 15, 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.84 examples/prog07.rb
rubytext-0.0.83 examples/prog07.rb
rubytext-0.0.82 examples/prog07.rb
rubytext-0.0.81 examples/prog07.rb
rubytext-0.0.80 examples/prog07.rb
rubytext-0.0.79 examples/prog07.rb
rubytext-0.0.78 examples/prog07.rb
rubytext-0.0.77 examples/prog07.rb
rubytext-0.0.76 examples/prog07.rb
rubytext-0.0.75 examples/prog07.rb
rubytext-0.0.74 examples/prog07.rb
rubytext-0.0.73 examples/prog07.rb
rubytext-0.0.72 examples/prog07.rb
rubytext-0.0.71 examples/prog07.rb
rubytext-0.0.70 examples/prog07.rb
rubytext-0.0.69 examples/prog07.rb