Sha256: a8779b4b42d65aaff53399eabe2431b21cb077897f31c05be81c931f5f8c1933
Contents?: true
Size: 788 Bytes
Versions: 4
Compression:
Stored size: 788 Bytes
Contents
# frozen_string_literal: true require_relative '../lib/tty-box' print TTY::Cursor.clear_screen box_1 = TTY::Box.frame( top: 2, left: 10, width: 30, height: 10, border: :thick, align: :center, padding: 3, title: { top_left: ' file1 ' }, style: { fg: :bright_yellow, bg: :blue, border: { fg: :bright_yellow, bg: :blue } } ) do "Drawing a box in terminal emulator" end box_2 = TTY::Box.frame( top: 8, left: 34, width: 30, height: 10, border: :thick, align: :center, padding: 3, title: { top_left: ' file2 ' }, style: { fg: :bright_yellow, bg: :blue, border: { fg: :bright_yellow, bg: :blue } } ) do "Drawing a box in terminal emulator" end 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/commander.rb |
tty-box-0.4.1 | examples/commander.rb |
tty-box-0.4.0 | examples/commander.rb |
tty-box-0.3.0 | examples/commander.rb |