3 ms·
Looks nice! I have been thinking of extracting some code into a gem like this; now I might not have to. Features I need, though: - Creating tables where you k
by lobster_johnson 12y ago
Looks nice! I have been thinking of extracting some code into a gem like this; now I might not have to.
Features I need, though:
- Creating tables where you know the desired column widths (number of characters or percentages) but you don't know the number of rows yet, because you'd like to stream the rows, not wait for all the data until rendering.
- Display progress on a single line and the ability to clean the current line when done. Typically this is stuff like percentage/bytes completed. Spinner would be nice.
- Display an incremental series of steps that get a checkmark and turn green when ok, or display an error symbol and turn red when not.
Will see if I have time to work this into your gem.
Your site is a little broken, by the way. The API link doesn't go to any API documentation, and on the Usage page, only the table links in the sidebar work.
- pmurach 12y agoThanks for you comment! Your feature requests are definitely where I want the library to go so I went and added them to tracker https://github.com/peter-murach/tty/issues https://github.com/peter-murach/tty/issues as a future reminder. Please feel free to submit more suggestions or PR! Few people pointed out the broken website to me, I'll definitely fix. I