Sha256: e07f74e2505a8cbd104ba34a42fe41bef5783ada2285bd0e8878a9bb4519acc6

Contents?: true

Size: 503 Bytes

Versions: 2

Compression:

Stored size: 503 Bytes

Contents

def fx(*args) # find better way
  RubyText::Effects.new(*args)
end

win = RubyText.window(9, 65, 2, 26, fg: Green, bg: Blue)
fg, bg = Green, Blue

win.puts "This is EXPERIMENTAL."
win.puts "Use an \"effect\" to change the color or \"look\""
win.puts "of the text (temporarily):\n "

win.puts "This is", fx(win, Yellow), " another color ", 
          fx(win, White), "and yet another."
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.70 examples/prog20.rb
rubytext-0.0.69 examples/prog20.rb