Sha256: a64bfba32d744f5c6dfef2e48d61ce23922bdd9a3ac780cd07d3d56a3c5bca7a
Contents?: true
Size: 657 Bytes
Versions: 4
Compression:
Stored size: 657 Bytes
Contents
# frozen_string_literal: true require_relative '../lib/tty-box' print TTY::Cursor.clear_screen box_1 = TTY::Box.frame( top: 3, left: 10, width: 15, height: 5, border: { type: :thick, right: false, }, align: :center, padding: [1, 2], style: { bg: :red, border: { bg: :red } } ) { "Space" } box_2 = TTY::Box.frame( top: 3, left: 25, width: 15, height: 5, border: { type: :thick, top_left: :divider_down, bottom_left: :divider_up }, align: :center, padding: [1,2], style: { bg: :red, border: { bg: :red } } ) { "Invaders!" } puts box_1 + box_2 print "\n" * 5
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tty-box-0.5.0 | examples/connected.rb |
tty-box-0.4.1 | examples/connected.rb |
tty-box-0.4.0 | examples/connected.rb |
tty-box-0.3.0 | examples/connected.rb |