Sha256: 7613517a80d55d8969d6c4e5032075a592d1c16f0edbe1e673af4c9f6459abbe

Contents?: true

Size: 494 Bytes

Versions: 12

Compression:

Stored size: 494 Bytes

Contents

win = RubyText.window(12, 65, 0, 6, true, fg: :green, bg: :blue)

win.puts "This is EXPERIMENTAL."
win.puts "Use a color symbol to change text color temporarily:\n "

win.puts "This is", :yellow, " another color", :white, " and yet another."
win.puts "And this is normal again.\n "

win.puts "This does mean that you can't print a symbol that is"
win.puts "also a color name... you'd need a workaround.\n "

sym = :red
win.puts "The symbol is ", sym.inspect, " which works", sym, " just fine."

Version data entries

12 entries across 12 versions & 1 rubygems

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