Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 2015 13:20:15 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        Dangling Pointer <danglingpointer@outlook.com>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: git diff encoding issue when running via Hyper-V
Message-ID:  <alpine.BSF.2.20.1509301317340.37455@wonkity.com>
In-Reply-To: <20150930165744.3437d751.freebsd@edvax.de>
References:  <BAY169-W424C7A9E96B8530A5BCAF0A74D0@phx.gbl> <20150930165744.3437d751.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Sep 2015, Polytropon wrote:

> On Wed, 30 Sep 2015 14:31:36 +0000, Dangling Pointer wrote:
>> Hi,
>> When I run FreeBSD 10.1 or 10.2 x64 via Hyper-V on Windows 10, the
>> encoding of `git diff` command emits cluttered text (with lots of
>> "ESC[m" noise) like:
>> ESC[31m-setup_dirs()ESC[m
>> ESC[32m+ESC[mESC[32msetup_dirs2()ESC[m
>> instead of:
>> -setup_dirs()+setup_dirs2()
>> I don't know what to make of it.
>
> This looks like color codes...
>
>
>
>> Can somebody please let me know if this is a bug or do I need to
>> configure something?
>
> The pager (and the attached terminal emulator) should be able to
> convert those codes (Escape, [, code sequence) into something
> meaningful, usually a change of display attributes such as color,
> inverse, underlined (or whatever the terminal supports).

FWIW, less(1) supports color codes with the -R option.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1509301317340.37455>