terminal-table-unicode

tj/terminal-table is an awesome rubygem. But it has a probrem that can deal with full-width unicode characters. terminal-table-unicode solved that. I referred to miaout17/hirb-unicode.

Installation

Add this line to your application's Gemfile:

gem 'terminal-table-unicode'

And then execute:

$ bundle

Or install it yourself as:

$ gem install terminal-table-unicode

Usage

require 'terminal-table-unicode'
rows = []
rows << ['One', 1]
rows << ['Two', 2]
rows << ['Three', 3]
rows << ['よん', 4]
table = Terminal::Table.new :rows => rows
puts table

terminal-table-unicode_example.png

You can use with other options.
see more: tj/terminal-table

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rochefort/terminal-table-unicode.