Sha256: 0c80bbc3ef57e98f07304e2da42f87e4782914a5ca9acc238c39aa0c45a877ca

Contents?: true

Size: 486 Bytes

Versions: 16

Compression:

Stored size: 486 Bytes

Contents

win = RubyText.window(12, 65, 0, 6, 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

16 entries across 16 versions & 1 rubygems

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