miguelnixon has asked for the wisdom of the Perl Monks concerning the following question:
Hi all: forgive me if this is the wrong forum, or the question has already been asked.
Linux Mint xfce 19.2 with Perl v5.22
A script with embedded pod renders correctly using "perldoc myfunc"
Linux Mint xfce 20 with Perl v5.30
Does not render Bold, Italics etc but just shows plain text using "perldoc myfunc".
Here is what output looks like (hexdump on mint 19.2, perl v5.22):
However, the same on mint 20, perl v5.30 looks thus:
Linux Mint xfce 19.2 with Perl v5.22
A script with embedded pod renders correctly using "perldoc myfunc"
Linux Mint xfce 20 with Perl v5.30
Does not render Bold, Italics etc but just shows plain text using "perldoc myfunc".
Here is what output looks like (hexdump on mint 19.2, perl v5.22):
You can clearly see the embedded text formatting escape codes.perldoc junk2|hexdump -C 00000000 1b 5b 31 6d 1b 5b 31 6d 68 65 61 64 69 6e 67 1b |.[1m.[1mh +eading.| 00000010 5b 30 6d 1b 5b 30 6d 0a 20 20 20 20 1b 5b 34 6d |[0m.[0m. + .[4m| 00000020 61 72 67 75 6d 65 6e 74 31 1b 5b 30 6d 0a 20 20 |argument1 +.[0m. | 00000030 20 20 20 20 20 20 44 65 73 63 72 69 70 74 69 6f | Des +criptio| 00000040 6e 20 6f 66 20 74 68 65 20 66 69 72 73 74 20 61 |n of the +first a| 00000050 72 67 75 6d 65 6e 74 2e 0a 0a 20 20 20 20 1b 5b |rgument.. +. .[| 00000060 34 6d 61 72 67 75 6d 65 6e 74 32 1b 5b 30 6d 0a |4margumen +t2.[0m.| 00000070 20 20 20 20 20 20 20 20 44 65 73 63 72 69 70 74 | D +escript| 00000080 69 6f 6e 20 6f 66 20 74 68 65 20 73 65 63 6f 6e |ion of th +e secon| 00000090 64 20 61 72 67 75 6d 65 6e 74 2e 0a 0a |d argumen +t...| 0000009d
However, the same on mint 20, perl v5.30 looks thus:
perldoc junk2|hexdump -C 00000000 68 65 61 64 69 6e 67 0a 20 20 20 20 2a 61 72 67 |heading. + *arg| 00000010 75 6d 65 6e 74 31 2a 0a 20 20 20 20 20 20 20 20 |ument1*. + | 00000020 44 65 73 63 72 69 70 74 69 6f 6e 20 6f 66 20 74 |Descripti +on of t| 00000030 68 65 20 66 69 72 73 74 20 61 72 67 75 6d 65 6e |he first +argumen| 00000040 74 2e 0a 0a 20 20 20 20 2a 61 72 67 75 6d 65 6e |t... * +argumen| 00000050 74 32 2a 0a 20 20 20 20 20 20 20 20 44 65 73 63 |t2*. + Desc| 00000060 72 69 70 74 69 6f 6e 20 6f 66 20 74 68 65 20 73 |ription o +f the s| 00000070 65 63 6f 6e 64 20 61 72 67 75 6d 65 6e 74 2e 0a |econd arg +ument..| 00000080 0a |.| 00000081
No formatting escape codes
I tried the above on a completely new installation of Mint 20 with the same wrong results.
I've used Perl since +- 1999, and have generally always embedded perldoc documentation at the end of each script.
But this is the first time I have seen formatting disappear!
There is no PAGER or PERLDOC_PAGER environment variable on either computer, and terminal settings are the same (those I can change)
Any suggestions? Further info needed?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perldoc Bold, Italic etc
by kcott (Archbishop) on Aug 29, 2021 at 19:54 UTC | |
Re: perldoc Bold, Italic etc (updated)
by LanX (Saint) on Aug 29, 2021 at 17:25 UTC | |
Re: perldoc Bold, Italic etc
by choroba (Cardinal) on Sep 01, 2021 at 08:55 UTC | |
Re: perldoc Bold, Italic etc
by Perlbotics (Archbishop) on Aug 29, 2021 at 18:33 UTC | |
by LanX (Saint) on Aug 29, 2021 at 23:16 UTC | |
Re: perldoc Bold, Italic etc
by jkeenan1 (Deacon) on Aug 29, 2021 at 16:59 UTC | |
by miguelnixon (Novice) on Aug 31, 2021 at 09:06 UTC | |
by LanX (Saint) on Aug 31, 2021 at 11:39 UTC | |
by miguelnixon (Novice) on Aug 31, 2021 at 19:03 UTC | |
by LanX (Saint) on Sep 01, 2021 at 01:24 UTC | |
|
Back to
Seekers of Perl Wisdom