arp242 / elles

A nicer /bin/ls
MIT License
79 stars 3 forks source link

Color not reset when colored string is truncated #4

Closed meribold closed 5 months ago

meribold commented 5 months ago

Here's what elles -lw34 / looks like on my system:

When the end of a colored string is replaced with an ellipsis, the color remains active in the next line. I tried it in a few different terminal emulators and always got the same behavior.

$ elles --version
elles v0.1.0 3b9afba1 2024-06-13; go1.22.4 linux/amd64; race=false; cgo=false
arp242 commented 5 months ago

I tried it in a few different terminal emulators and always got the same behavior.

I don't think there's anything that should behave different on different terminals, FYI.