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