Sha256: 8aa21413b79ec79b8f40a3a64f6fa53f4633a377e4e3745b6e41efef379da79b

Contents?: true

Size: 666 Bytes

Versions: 2

Compression:

Stored size: 666 Bytes

Contents

def fx(*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", fx(win, Yellow), " another color ", 
          fx(win, White), "and yet another."
win.puts "We can ", fx(win, :bold), "boldface ",
         "and ", fx(win, :reverse), "reverse ",
         "and ", fx(win, :under), "underline ",
         fx(win, :normal), "text at will.\n "
win.puts "This is ", fx(win, :bold, Red), "bold red ", 
         fx(win, :normal, fg), "and this is normal again.\n "

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubytext-0.0.72 examples/prog20.rb
rubytext-0.0.71 examples/prog20.rb