X-Original-To: alpine-user@lists.alpinelinux.org Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) by lists.alpinelinux.org (Postfix) with ESMTP id EC198F84D08 for ; Thu, 7 Feb 2019 17:44:32 +0000 (UTC) Received: by mail-yb1-f172.google.com with SMTP id s76so274999ybs.10 for ; Thu, 07 Feb 2019 09:44:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=40FTPsJarl8WYa+FyK8iwxdtTziThDvfRlqUNCgupuU=; b=eX1TiaCuiZ84Zv8W+Vf8FXlB7FHZiReibvlAP4ATMsTN3ndHlaDkHXd8pGQWoJY32v MC7p4dSu2AZxVXcJxO4yTz+kfoXSE22nPTl01Sg8wHiGC4YtSHn559zE8M6Y194oVCgi E8tZ/Rbu8dhTwvAYnjlX/6uIGgawA63Q659vHdo4BGnQLKjaC0rqcpCNDbegz3Kd+qXC Z3PuzxLl5eCHjIlzEFEvsVj7iW4cFEDqyk+j4E18kNNFb+3eypNIFw+tiHx//+2Clpvl quACLouCRddZyXmAjbg49hhmkXWfJFIRF657IpB+mJosAAfy4jwWNFQeNBCGiJ56IAPI bT4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=40FTPsJarl8WYa+FyK8iwxdtTziThDvfRlqUNCgupuU=; b=EQzbMBTPaz5NXgKCtQPNc4SZG1JGNWqsWaJJLm/WMANeCI6LY5BUiZYb5rQmdaVnpe +MwPcNUeimsu4djoU0AI6UQBkq8hq710Ux6nd59WssnFp6cKM/uSIV8FWO/fkTfUnBia N0yALDxqGVcHl4xbro/q5WPek5B+5y91/GQvi9YEklpFC39JXBGF8IDp08zB0s3cJf39 rK4JHhBDIOSbMAz0cvHq2xOsfXXIfqJ+zCXg+Q9Gko2yYr7BdH01I7g+U5itUnRUVqvf V7RLM4uoeEdZZOrvQrIQeV3bgDX9CKapi2fQRo49wM+qyqEiR1SEL10Za6OggKIrXwcM 0O1Q== X-Gm-Message-State: AHQUAuZ+6kxBIhUxv7iQGNQD5p+/ujjiE0WINcKs13tzveoWfB+s5yVU 5DxCL4D3E2hqDKEbYfH8mJRfoTjEc7uFmTwmgZKQFpcH X-Google-Smtp-Source: AHgI3IZciFkPVN822RyAFj1FnE1nTou07xcxiyb354J4iGOXeia+dgm/luv2aoxU43phM00CtmznUuQJIWXIvByHTyQ= X-Received: by 2002:a25:8887:: with SMTP id d7mr13878261ybl.308.1549561472502; Thu, 07 Feb 2019 09:44:32 -0800 (PST) X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 References: <5d7ead98-b4e2-bc92-5336-45884a905819@cosmoborsky.com> In-Reply-To: <5d7ead98-b4e2-bc92-5336-45884a905819@cosmoborsky.com> From: Andrew Bell Date: Thu, 7 Feb 2019 12:44:21 -0500 Message-ID: Subject: Re: [alpine-user] less and Color To: me@cosmoborsky.com Cc: alpine-user@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="000000000000204dba05815165df" --000000000000204dba05815165df Content-Type: text/plain; charset="UTF-8" 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 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 --000000000000204dba05815165df Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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.
<= div>
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 Trun= cate long lines
-~ Suppress ~s displayed past EOF
=


On Thu, Feb 7, 2019 at 12:28 PM Cosmo Borsky <me@cosmoborsky.com> wrote:
=20 =20 =20
I use the following in my `~/.profile`
`export LESS=3D"--RAW-CONTROL-CHARS"`

On 2/7/19 12= :21 PM, Andrew Bell wrote:
=20
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.=C2=A0 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,



--
--000000000000204dba05815165df-- --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---