/term-art

📊 A terminal boards using ascii art

Primary LanguageRubyMIT LicenseMIT

Gem version Downloads License

How To Use • Documentation • Example

How to use

Install the gem manually :

$ gem install term-art

or add it to your Gemfile :

+ gem 'term-art'

and then run :

$ bundle

Documentation

Styles

There are two differents styles:

  • :simple Simple style
  • :double Double style

Colors

See hue-rb

Example

require 'term-art'

chart = TermArt::Chart.new([
  ['A', 'B', 'C'],
  ['D', 'E', 'F']
])
puts chart.draw(style: :simple, color: :red)