Sha256: c7c3ed27ecd881151e451ff97e49f1fa65a13328aa6ca865bee913dee059df22
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
def effect(*args) # find better way RubyText::Effects.new(*args) end fg, bg = White, Blue win = RubyText.window(9, 65, 2, 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(win, Yellow), " another color ", effect(win, White), "and yet another." win.puts "We can ", effect(win, :bold), "boldface ", "and ", effect(win, :reverse), "reverse ", "and ", effect(win, :under), "underline ", effect(win, :normal), "text at will.\n " win.puts "This is ", effect(win, :bold, Red), "bold red ", effect(win, :normal, fg), "and this is normal again.\n "
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubytext-0.0.73 | examples/prog20.rb |