bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a fix for color ls with wrapped lines.


From: Jan Engelhardt
Subject: Re: a fix for color ls with wrapped lines.
Date: Tue, 14 Oct 2008 10:57:49 -0400 (EDT)
User-agent: Alpine 1.10 (LNX 962 2008-03-14)

On Tuesday 2008-10-14 10:17, Jim Meyering wrote:
>>
>> --- ls.c.1   2008-10-14 12:24:39.605050000 +0400
>> +++ ls.c     2008-10-14 12:25:48.985396400 +0400
>> @@ -538,7 +538,7 @@
>>    {
>>      { LEN_STR_PAIR ("\033[") },             /* lc: Left of color sequence */
>>      { LEN_STR_PAIR ("m") },         /* rc: Right of color sequence */
>> -    { 0, NULL },                    /* ec: End color (replaces lc+no+rc) */
>> +    { LEN_STR_PAIR ("\033[m\033[K") },      /* ec: End color (replaces 
>> lc+no+rc) */
>>      { LEN_STR_PAIR ("0") },         /* rs: Reset to ordinary colors */
>>      { 0, NULL },                    /* no: Normal */
>>      { 0, NULL },                    /* fi: File: default */
>
>Thanks for the report.
>Can you list a few terminal emulators that are affected?
>The more the better.

This affects at least linux vt, xterm and urxvt, possibly much more.

>Also, please tell precisely how to demonstrate the problem.

touch zzzz.foo
(must be the last file in a long listing, long enough to cause scrolling)
LS_COLORS="*.foo=0;31;42" ls -l




reply via email to

[Prev in Thread] Current Thread [Next in Thread]