From owner-freebsd-questions@freebsd.org Wed Sep 30 19:20:22 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5134EA0C59F for ; Wed, 30 Sep 2015 19:20:22 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 15986139A for ; Wed, 30 Sep 2015 19:20:21 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id t8UJKGU8074778 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 30 Sep 2015 13:20:16 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id t8UJKF3o074775; Wed, 30 Sep 2015 13:20:16 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 30 Sep 2015 13:20:15 -0600 (MDT) From: Warren Block To: Polytropon cc: Dangling Pointer , "freebsd-questions@freebsd.org" Subject: Re: git diff encoding issue when running via Hyper-V In-Reply-To: <20150930165744.3437d751.freebsd@edvax.de> Message-ID: References: <20150930165744.3437d751.freebsd@edvax.de> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 30 Sep 2015 13:20:16 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2015 19:20:22 -0000 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.