Sha256: 3808b151bfdec8c621ccf610a8805e43f242c04f5ae5672f908ad6f35b3b94d5
Contents?: true
Size: 645 Bytes
Versions: 11
Compression:
Stored size: 645 Bytes
Contents
require '../lib/green_shoes' # The same as gallery2 : http://shoes-tutorial-note.heroku.com/html/01110_Fancy_Gallery_1-5.html # But revised for Green Shoes Shoes.app width: 200, height: 200 do background mintcream flow margin: 5 do flow height: 190 do background './shell.png', curve: 5 @line = para ' ' @line.cursor = -1 end end keypress do |k| #p k msg = case k when 'BackSpace'; @line.text[0..-2] else k.length == 1 ? @line.text + k : nil end (@line.text = strong fg msg.gsub('&', '&').gsub('<', '<'), white) if msg flush end end
Version data entries
11 entries across 11 versions & 1 rubygems