GitShow/tj/terminal-table
tj

terminal-table

Ruby ASCII Table Generator, simple and feature rich.

by tj
Star on GitHubFork

Ruby

1.6k stars124 forks46 contributorsQuiet · 2mo agoSince 2009v4.0.0MIT

Meet the team

See all 46 on GitHub →
nateberkopec
nateberkopec79 contributions
tj
tj76 contributions
rrrene
rrrene39 contributions
scottjg
scottjg14 contributions
nanobowers
nanobowers12 contributions
smtlaissezfaire
smtlaissezfaire8 contributions
wbotelhos
wbotelhos8 contributions
vizv
vizv5 contributions

Languages

View on GitHub →
Ruby100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 2 in progress · Last activity 2mo ago
See all on GitHub →
hlascelles
Handle cells containing OSC 8 hyperlinksOpenPR

strips ANSI CSI escape sequences (e.g. SGR color codes) when computing a cell's visible width, but it does not recognize OSC 8 hyperlink escape sequences ( or the BEL-terminated variant ). As a result, any cell whose value includes a terminal hyperlink is measured as if the escape sequence bytes were visible characters, inflating the calculated column width and breaking table alignment/borders. This PR caters for those hyperlink sequences.

hlascelles · 1mo ago
mvastola
No Borders?OpenIssue

Thanks for this great gem. Full disclosure: I'm not sure if this is a feature request, a documentation request, or me just being blind (in case of the latter, apologies for the stupid question), but is there any simple way to completely disable borders/separators entirely? I have to think there is because this is such a popular gem, but I can't find how.. I know there's , but I haven't figured out anything similar for borders. Setting to , , or doesn't seem to work for me. The only ways I can figure out to do it are: Subclassing This hash entry makes me suspect the solution is assigning to some option, but I can't get that to work either. Am I missing something? If so, can I ask what it is and request it be documented? (I'm happy to submit a PR doing so). If not, would you accept a PR to add such an option? (Feedback welcome on how you'd like users to select the option.) Thanks so much PS: Possibly related: If I call , is there any way to omit the blank lines that get outputted before/after the table?

mvastola · 5mo ago
forthrin
Automatically shrink longest column until row fits terminal widthOpenIssue

forthrin · 8mo ago

Recent fixes

View closed PRs →
olleolleolle
CI: Add Ruby 3.3, 3.4 - and trust setup-ruby to bundle installMergedPR

This PR extends the CI build matrix. It also stops repeating , after setup-ruby has done its installation using cached Bundler gems.

olleolleolle · 1y ago
smprather
Cannot set cell widthClosedIssue

I am trying to figure out how to set a given column to a hard width. I don't want every column of the table to be this width, just one. I was looking at the code in cell.rb, and I see this: @width = options.fetch :width, @value.to_s.size But that's the end of that instance variable. It is never used. It would be nice if a table could be defined something like this: table = Terminal::Table.new :style => {:width => [:auto, :auto, 80, :auto]} Thanks! Myles

smprather · 1y ago
DannyBen
Error in v1.8.0 - uninitialized constant Terminal::Table::Cell::Unicode (NameError)ClosedIssue

I am getting an error with version 1.8.0, while version 1.7.3 does not seem to have the problem. I never had this error before, perhaps I had version 1.7.3 installed before today. Code System info Ruby: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux] RVM: rvm 1.29.3 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io] Bundler: Bundler version 1.17.2 OS: Ubuntu 16.04.5 LTS

DannyBen · 1y ago
Structured data for AI agents

Repository: tj/terminal-table. Description: Ruby ASCII Table Generator, simple and feature rich. Stars: 1573, Forks: 124. Primary language: Ruby. Languages: Ruby (100%). License: MIT. Latest release: v4.0.0 (1y ago). Open PRs: 2, open issues: 3. Last activity: 2mo ago. Community health: 42%. Top contributors: nateberkopec, tj, rrrene, scottjg, nanobowers, smtlaissezfaire, wbotelhos, vizv, mvz, jescholl and others.

·@ofershap

Replace github.com with gitshow.dev