Skip to content

Simple, feature rich ascii table generation library with full-width unicode characters

Notifications You must be signed in to change notification settings

rochefort/terminal-table-unicode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple, feature rich ascii table generation library with full-width unicode characters

Resources

Stars

Watchers

Forks

Packages

No packages published