tabby icon indicating copy to clipboard operation
tabby copied to clipboard

Add colored output

Open emmggi opened this issue 5 years ago • 2 comments

Asking if you could add colored output per column and row. Alternatively, if someone knows of a golang package to use to print colored columns let me know.

emmggi avatar May 09 '19 11:05 emmggi

I'm not a maintainer of this repo and I don't know if this feature is coming here. However, you could use faith/color to "color a string" using ANSI escape codes, which I'm assuming is what you're after.

Something like

t.AddLine(color.Cyan("John Smith."), color.Blue("Developer"), color.Red("Engineering"))

remnestal avatar May 19 '19 20:05 remnestal

@remnestal i think i tried that and some other packages but they would mess up the formatting of the table. Columns would go into each other, it would cause a mess.

emmggi avatar Jun 07 '19 12:06 emmggi