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.
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
require 'terminal-table-unicode'
rows = []
rows << ['One', 1]
rows << ['Two', 2]
rows << ['Three', 3]
rows << ['よん', 4]
table = Terminal::Table.new :rows => rows
puts table
You can use with other options.
see more: tj/terminal-table
Bug reports and pull requests are welcome on GitHub at https://github.com/rochefort/terminal-table-unicode.