cli-table icon indicating copy to clipboard operation
cli-table copied to clipboard

Column Wrapping / Truncation

Open theduke opened this issue 4 years ago • 1 comments

Browsing the docs, it doesn't seem like there is any option for controlling wrapping or truncation.

The ability to customize this per column would be great.

As in: wrap splits the cell into multiple lines, while truncate cuts off the text, and possibly adds an ... ellipsis.

theduke avatar May 08 '21 19:05 theduke

This is a bit tricky to do when the string contains ANSI escape sequences for coloring.

devashishdxt avatar May 10 '21 01:05 devashishdxt