No commit activity in last 3 years
No release in over 3 years
Simple, feature rich ascii table generation library with full-width unicode characters
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12.2
~> 11.3.0

Runtime

 Project Readme

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.