perldoc shows lots of escapes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
perl (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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/
perl, perl-doc: /usr/bin/perldoc
$ echo $PAGER
$ perldoc perlsyn
(Now in pager:)
ESC[1mNAMEESC[0m
perlsyn - Perl syntax
ESC[1mDESCRIPTI
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/
/usr/share/
/usr/share/
/usr/share/
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
ProcVersionSign
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)
PackageArchitec
SourcePackage: perl
UpgradeStatus: Upgraded to artful on 2017-11-27 (0 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.