From owner-freebsd-perl@FreeBSD.ORG Wed Apr 15 16:35:42 2015 Return-Path: Delivered-To: perl@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A71C2EBA; Wed, 15 Apr 2015 16:35:42 +0000 (UTC) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6391AABB; Wed, 15 Apr 2015 16:35:42 +0000 (UTC) Received: from pi by home.opsec.eu with local (Exim 4.85 (FreeBSD)) (envelope-from ) id 1YiQHv-000Jgf-7d; Wed, 15 Apr 2015 18:35:43 +0200 Date: Wed, 15 Apr 2015 18:35:43 +0200 From: Kurt Jaeger To: Lev Serebryakov Cc: perl@FreeBSD.org Subject: Re: perldoc is broken in 9, 10 and CURRENT with "xterm" TERM Message-ID: <20150415163543.GK2743@home.opsec.eu> References: <552E9132.6020604@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <552E9132.6020604@FreeBSD.org> X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2015 16:35:42 -0000 Hi! > perldoc from perl 5.16 and perl 5.18 on 9, 10 and CURRENT shows ESC > codes like this: > > "ESC[4mfieldsESC[24m") that do ESC[1mnot ESC[22minclude > > Terminal tried is "xterm" (PuTTY and cygwin's rxtv) and "cygwin" > (cygwin's ssh from console). What does echo $PAGER say ? What does echo $LESS say ? > I've found closed PR, which explains or fixes nothing: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=162463 If you use less as your PAGER and add an environment variable export LESS=-r then perldoc works. So the behaviour is not pretty, but there is a solution. -- pi@opsec.eu +49 171 3101372 5 years to go !