git diff encoding issue when running via Hyper-V
wblock at wonkity.com
Wed Sep 30 19:20:22 UTC 2015
On Wed, 30 Sep 2015, Polytropon wrote:
> On Wed, 30 Sep 2015 14:31:36 +0000, Dangling Pointer wrote:
>> 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:
>> instead of:
>> 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.
More information about the freebsd-questions