console-table-printer icon indicating copy to clipboard operation
console-table-printer copied to clipboard

Tables doesn't displaying in Heroku

Open IvanGodinez21 opened this issue 4 years ago • 6 comments

When I try to use it in Heroku (A PaaS that works using Ubuntu), tables doesn't display as should be

image

IvanGodinez21 avatar Jul 10 '21 16:07 IvanGodinez21

Yes I have noticed this before while running the tests on Heroku/circle-ci/travis. They use a different Terminal that what we use in local.

The solution is I need to find a way to detect terminal type and use proper ascii color code for that terminal.

ayonious avatar Aug 05 '21 09:08 ayonious

A lazy and easy fix would be to rely on an environment variable to choose what ascii color codes to use.

ArjixWasTaken avatar Aug 05 '21 13:08 ArjixWasTaken

@ArjixWasTaken sounds good

ayonious avatar Aug 05 '21 15:08 ayonious

@IvanGodinez21 is this not happening anymore?

ayonious avatar Dec 16 '21 07:12 ayonious

Oh, @ayonious I didn't see any update related to this issue, so I decided to close it, but if you want to re-open it, you can do it. Maybe this issue could be hard to fix, and not just in Heroku, there are many other platforms that may have this bug.

I leave it to your decision

IvanGodinez21 avatar Dec 16 '21 17:12 IvanGodinez21

With this following feature no more special char would be printed which is lot better than having broken CI views. https://console-table.netlify.app/docs/doc-no-ascii

I wont consider this completely fixed but at least the basic table view should be seen using this. Styling can be done later

ayonious avatar Dec 22 '23 12:12 ayonious