Don't assume connection to a tty when number of columns is set#975
Don't assume connection to a tty when number of columns is set#975liquid-dragons wants to merge 2 commits intoogham:masterfrom
Conversation
|
I think the I think that we should leverage the fact that the |
|
Im not sure if I understood you correctly, but for now I just replaced the I was also wondering if adding a testcase for this bug would be helpful? Ive looked into that already, but I dont think I entirely understand how to add a test yet, so I would need some help if you think I should add one. |
|
I suppose it’s something that you could test with Vagrant. See https://github.com/ogham/exa#testing-with-vagrant. Then it’s possible to add a test where exa is piped. Let me know if you want to do this or if you have questions. I could do it but as you may have noticed by the time I took to comment your PR, I don’t have much time for exa these days, so it would be cool if you take a stab at it. |
This fixes the colorization issue from #955. Im not sure about introducing an unsafe block for that libc call though, can I get an opinion on that?