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