~alpine/users

3 3

[alpine-user] less and Color

Details
Message ID
<CACJ51z0nGmNaFHcW0R3kwb+9b4xo_qjDO5+9DbxyrdFGcOas=A@mail.gmail.com>
Sender timestamp
1549560114
DKIM signature
missing
Download raw message
Hi,

git diff on alpine seems to pass its output through less, but the color
escape codes seem to get modified/trashed in the process.  I know I can use
git diff --no-color, which works fine, but I'd like to fix or at least
understand why my terminal isn't getting proper escape codes for colors and
instead I get a bunch of '[[31m", for instance.

Ideas appreciated,

-- 
Andrew Bell
andrew.bell.ia@gmail.com
Cosmo Borsky <me@cosmoborsky.com>
Details
Message ID
<5d7ead98-b4e2-bc92-5336-45884a905819@cosmoborsky.com>
In-Reply-To
<CACJ51z0nGmNaFHcW0R3kwb+9b4xo_qjDO5+9DbxyrdFGcOas=A@mail.gmail.com> (view parent)
Sender timestamp
1549560481
DKIM signature
missing
Download raw message
I use the following in my `~/.profile`
`export LESS="--RAW-CONTROL-CHARS"`

On 2/7/19 12:21 PM, Andrew Bell wrote:
> Hi,
>
> git diff on alpine seems to pass its output through less, but the
> color escape codes seem to get modified/trashed in the process.  I
> know I can use git diff --no-color, which works fine, but I'd like to
> fix or at least understand why my terminal isn't getting proper escape
> codes for colors and instead I get a bunch of '[[31m", for instance.
>
> Ideas appreciated,
>
> -- 
> Andrew Bell
> andrew.bell.ia@gmail.com <andrew.bell.ia@gmail.com>
Details
Message ID
<CACJ51z0raptPgu_iECMT4kbOS8tMw1DzOKi-e7a2FLEiTECuVA@mail.gmail.com>
In-Reply-To
<5d7ead98-b4e2-bc92-5336-45884a905819@cosmoborsky.com> (view parent)
Sender timestamp
1549561461
DKIM signature
missing
Download raw message
Hmm,

less on my system has no such option:

$ less
less: missing filename
BusyBox v1.28.4 (2018-12-31 18:05:13 UTC) multi-call binary.

Usage: less [-EIMmNSh~] [FILE]...

View FILE (or stdin) one screenful at a time

-E Quit once the end of a file is reached
-I Ignore case in all searches
-M,-m Display status line with line numbers
and percentage through the file
-N Prefix line number to each line
-S Truncate long lines
-~ Suppress ~s displayed past EOF


On Thu, Feb 7, 2019 at 12:28 PM Cosmo Borsky <me@cosmoborsky.com> wrote:

> I use the following in my `~/.profile`
> `export LESS="--RAW-CONTROL-CHARS"`
>
> On 2/7/19 12:21 PM, Andrew Bell wrote:
>
> Hi,
>
> git diff on alpine seems to pass its output through less, but the color
> escape codes seem to get modified/trashed in the process.  I know I can use
> git diff --no-color, which works fine, but I'd like to fix or at least
> understand why my terminal isn't getting proper escape codes for colors and
> instead I get a bunch of '[[31m", for instance.
>
> Ideas appreciated,
>
> --
> Andrew Bell
> andrew.bell.ia@gmail.com
>
>
>

-- 
Andrew Bell
andrew.bell.ia@gmail.com
PICCORO McKAY Lenz <mckaygerhard@gmail.com>
Details
Message ID
<CALci+FQ=JWMtn2B2RfQGT0RzK6SkG6wFJ1Gza-ZSw5yv=R6=gg@mail.gmail.com>
In-Reply-To
<CACJ51z0raptPgu_iECMT4kbOS8tMw1DzOKi-e7a2FLEiTECuVA@mail.gmail.com> (view parent)
Sender timestamp
1549561673
DKIM signature
missing
Download raw message
maybe you are using the build in less command in busybox.. try install
coreutils related packages

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

El jue., 7 de feb. de 2019 a la(s) 13:44, Andrew Bell
(andrew.bell.ia@gmail.com) escribió:
>
> Hmm,
>
> less on my system has no such option:
>
> $ less
> less: missing filename
> BusyBox v1.28.4 (2018-12-31 18:05:13 UTC) multi-call binary.
>
> Usage: less [-EIMmNSh~] [FILE]...
>
> View FILE (or stdin) one screenful at a time
>
> -E Quit once the end of a file is reached
> -I Ignore case in all searches
> -M,-m Display status line with line numbers
> and percentage through the file
> -N Prefix line number to each line
> -S Truncate long lines
> -~ Suppress ~s displayed past EOF
>
>
> On Thu, Feb 7, 2019 at 12:28 PM Cosmo Borsky <me@cosmoborsky.com> wrote:
>>
>> I use the following in my `~/.profile`
>> `export LESS="--RAW-CONTROL-CHARS"`
>>
>> On 2/7/19 12:21 PM, Andrew Bell wrote:
>>
>> Hi,
>>
>> git diff on alpine seems to pass its output through less, but the color escape codes seem to get modified/trashed in the process.  I know I can use git diff --no-color, which works fine, but I'd like to fix or at least understand why my terminal isn't getting proper escape codes for colors and instead I get a bunch of '[[31m", for instance.
>>
>> Ideas appreciated,
>>
>> --
>> Andrew Bell
>> andrew.bell.ia@gmail.com
>>
>>
>
>
> --
> Andrew Bell
> andrew.bell.ia@gmail.com


---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)