Public bug reported:

Fresh konsole:
$ echo $TERM
xterm-256color
$ type perldoc
perldoc is /usr/bin/perldoc
$ dpkg -S /usr/bin/perldoc
diversion by perl-doc from: /usr/bin/perldoc
diversion by perl-doc to: /usr/bin/perldoc.stub
perl, perl-doc: /usr/bin/perldoc
$ echo $PAGER

$ perldoc perlsyn

(Now in pager:)

ESC[1mNAMEESC[0m
    perlsyn - Perl syntax

ESC[1mDESCRIPTIONESC[0m
    A Perl program consists of a sequence of declarations and statements which
...

That's a lot of ESCapes.  PAGER=more gets me "2NAME2" and the like.

$ locate perlsyn
/usr/share/man/man1/perlsyn.1.gz
/usr/share/man/man1/perlsynology.1.gz
/usr/share/perl/5.26.0/pod/perlsyn.pod
/usr/share/perl/5.26.0/pod/perlsynology.pod

No cached files apparently.

This works reasonably: TERM=none perldoc perlsyn | (TERM=vt100 less) -
but looses the bolds etc.

This works well: man perlsyn

This also works as expected, showing bolds and stuff, but I find it impractical:
    perldoc perlsyn | cat

So perldoc applies terminal appropriate escapes where it should not?

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: perl-doc 5.26.0-8ubuntu1
ProcVersionSignature: Ubuntu 4.13.0-17.20-generic 4.13.8
Uname: Linux 4.13.0-17-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.5
Architecture: amd64
CurrentDesktop: KDE
Date: Mon Nov 27 15:23:57 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2017-07-18 (132 days ago)
InstallationMedia: Kubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
PackageArchitecture: all
SourcePackage: perl
UpgradeStatus: Upgraded to artful on 2017-11-27 (0 days ago)

** Affects: perl (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug artful

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1734702

Title:
  perldoc shows lots of escapes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/1734702/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to