Sha256: b32830447abb0d2bfa6aff77af650c45daa2fe0246f3d8f27b76bcd4a62d58af
Contents?: true
Size: 668 Bytes
Versions: 5
Compression:
Stored size: 668 Bytes
Contents
def effect(*args) # find better way RubyText::Effects.new(*args) end fg, bg = White, Blue win = RubyText.window(9, 65, r: 2, c: 26, fg: fg, bg: bg) win.puts "This is EXPERIMENTAL (and BUGGY)." win.puts "Use an \"effect\" to change the text color or \"look\":" win.puts "This is", effect(Yellow), " another color ", effect(White), "and yet another." win.puts "We can ", effect(:bold), "boldface ", "and ", effect(:reverse), "reverse ", "and ", effect(:under), "underline ", effect(:normal), "text at will.\n " win.puts "This is ", effect(:bold, Red), "bold red ", effect(:normal, fg), "and this is normal again.\n "
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rubytext-0.0.89 | examples/prog20.rb |
rubytext-0.0.88 | examples/prog20.rb |
rubytext-0.0.87 | examples/prog20.rb |
rubytext-0.0.86 | examples/prog20.rb |
rubytext-0.0.85 | examples/prog20.rb |