Sha256: 8b9bf276785af09e14e6179e0051b5337d3128ed2ac06c85485111d800bc8af0

Contents?: true

Size: 611 Bytes

Versions: 41

Compression:

Stored size: 611 Bytes

Contents

puts "\n\n\n putch can take optional row/column keyword arguments"
puts " as well as 'fx' (text effects)"

STDSCR.go 1, 60;   sleep 0.4
STDSCR.putch "0";  sleep 0.4

STDSCR.putch '1', r: 3,  c: 64,  fx: RubyText::Effects.new(Red);               sleep 0.4 
STDSCR.putch '2', r: 5,  c: 68, fx: RubyText::Effects.new(Yellow, :reverse);   sleep 0.4 
STDSCR.putch '3', r: 7,  c: 72;                                                sleep 0.4 
STDSCR.putch '4', r: 9,  c: 76, fx: RubyText::Effects.new(Green, :normal);     sleep 0.4 
STDSCR.putch '5', r: 11, c: 80, fx: RubyText::Effects.new(Red, :normal)

STDSCR.home

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
rubytext-0.1.29 examples/putch.rb
rubytext-0.1.28 examples/putch.rb
rubytext-0.1.26 examples/putch.rb
rubytext-0.1.25 examples/putch.rb
rubytext-0.1.23 examples/putch.rb
rubytext-0.1.22 examples/putch.rb
rubytext-0.1.21 examples/putch.rb
rubytext-0.1.20 examples/putch.rb
rubytext-0.1.19 examples/putch.rb
rubytext-0.1.18 examples/putch.rb
rubytext-0.1.17 examples/putch.rb
rubytext-0.1.16 examples/putch.rb
rubytext-0.1.15 examples/putch.rb
rubytext-0.1.14 examples/putch.rb
rubytext-0.1.13 examples/putch.rb
rubytext-0.1.12 examples/putch.rb
rubytext-0.1.11 examples/putch.rb
rubytext-0.1.10 examples/putch.rb
rubytext-0.1.8 examples/putch.rb
rubytext-0.1.7 examples/putch.rb