in reply to Re^4: perldoc Bold, Italic etc
in thread perldoc Bold, Italic etc

Thanks! :)

It should load Pod::Perldoc::ToTerm, could you please check if an explicit -oterm loads it?

If it's available, I can't tell from this output why it's not chosen. (apart from the missing commas)

probably comparing the ENV variables sheds some light.

I'd also play with setting PERLDOCDEBUG

> Having PERLDOCDEBUG set to a positive integer will make perldoc emit even more descriptive output than the -D switch does; the higher the number, the more it emits.

If this doesn't give a clue I'm afraid I'm out of ideas.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^6: perldoc Bold, Italic etc
by miguelnixon (Novice) on Sep 01, 2021 at 12:17 UTC
    If I run perldoc -oterm junk2
    all I get is as below, with "ESC" in Inverse color (ie: not rendered graphically)
    ESC[1mESC[1mBold headingESC[0mESC[0m * ESC[4mItalic itemESC[0m Description of the first argument. * ESC[4malso ItalicESC[0m Description of the second argument. /tmp/cXitYT435j (END)
    As I said, only perldoc -oman junk2 actually renders the Bold, italic etc.
      My guess is that you have another terminal now which isn't enabled to render escape sequences.

      But it's still guessing, not enough infos to tell and I don't have a Linux at hand to check

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

        OK I checked with an old VM image with ubuntu14

        something like

        > PERLDOCDEBUG=2 perldoc tst.pod

        will show you plenty of details, like the found formatters and nroff binaries.

        This might give you a hint how the two systems are differing.

        (On a side note: the supposedly italic text was underlined in my terminal)

        lanx@ubuntu14-large:/tmp$ PERLDOCDEBUG=2 perldoc tst.pod New Pod::Perldoc object Pod::Perldoc=HASH(0xfc2cb8) 'opt_o_with: Noting "text" as desired output format... 'opt_o_with: Considering Pod::Perldoc::Totext 'opt_o_with: Considering Pod::Perldoc::Totext 'opt_o_with: Considering Pod::Perldoc::ToText 'opt_o_with: Considering Pod::Perldoc::ToTEXT 'opt_o_with: Considering Pod::Simple::text 'opt_o_with: Considering Pod::Simple::text 'opt_o_with: Considering Pod::Simple::Text 'opt_o_with: Considering Pod::Simple::TEXT 'opt_o_with: Considering Pod::text 'opt_o_with: Considering Pod::text 'opt_o_with: Considering Pod::Text 'opt_o_with: Considering Pod::TEXT 'opt_o_with: Noting "man" as desired output format... 'opt_o_with: Considering Pod::Perldoc::Toman 'opt_o_with: Considering Pod::Perldoc::Toman 'opt_o_with: Considering Pod::Perldoc::ToMan 'opt_o_with: Considering Pod::Perldoc::ToMAN 'opt_o_with: Considering Pod::Simple::man 'opt_o_with: Considering Pod::Simple::man 'opt_o_with: Considering Pod::Simple::Man 'opt_o_with: Considering Pod::Simple::MAN 'opt_o_with: Considering Pod::man 'opt_o_with: Considering Pod::man 'opt_o_with: Considering Pod::Man 'opt_o_with: Considering Pod::MAN Beginning process. Args: tst.pod Okay, no PERLDOC setting in ENV. Args right before switch processing: tst.pod 'GetOptsOO::getopts: Starting switch processing. Scanning arguments [ +tst.pod] 'GetOptsOO::getopts: Ending switch processing. Args are [tst.pod] wit +h 0 errors. Args after switch processing: tst.pod 'process: /usr/bin/perldoc => Pod::Perldoc v3.19 'process: 'find_good_formatter_class: Formatter class Pod::Perldoc::ToMan versio +n 3.19 successfully loaded! 'find_good_formatter_class: Will format with the class Pod::Perldoc::T +oMan 'grand_search_init: Searching for tst.pod 'grand_search_init: Found as tst.pod DEBUG Looking for /home/lanx/perl5/perlbrew/bin/groff DEBUG Looking for /home/lanx/bin/groff DEBUG Looking for /usr/local/sbin/groff DEBUG Looking for /usr/local/bin/groff DEBUG Looking for /usr/sbin/groff DEBUG Looking for /usr/bin/groff DEBUG Found /usr/bin/groff DEBUG Looking for /sbin/groff DEBUG Looking for /bin/groff DEBUG Looking for /usr/games/groff DEBUG Looking for /usr/local/games/groff DEBUG Looking for /home/lanx/perl5/perlbrew/bin/nroff DEBUG Looking for /home/lanx/bin/nroff DEBUG Looking for /usr/local/sbin/nroff DEBUG Looking for /usr/local/bin/nroff DEBUG Looking for /usr/sbin/nroff DEBUG Looking for /usr/bin/nroff DEBUG Found /usr/bin/nroff DEBUG Looking for /sbin/nroff DEBUG Looking for /bin/nroff DEBUG Looking for /usr/games/nroff DEBUG Looking for /usr/local/games/nroff DEBUG Looking for /home/lanx/perl5/perlbrew/bin/mandoc DEBUG Looking for /home/lanx/bin/mandoc DEBUG Looking for /usr/local/sbin/mandoc DEBUG Looking for /usr/local/bin/mandoc DEBUG Looking for /usr/sbin/mandoc DEBUG Looking for /usr/bin/mandoc DEBUG Looking for /sbin/mandoc DEBUG Looking for /bin/mandoc DEBUG Looking for /usr/games/mandoc DEBUG Looking for /usr/local/games/mandoc DEBUG Using /usr/bin/groff DEBUG Pod::Man switches are [] DEBUG Parsing tst.pod DEBUG Done parsing tst.pod DEBUG Writing podman.out.23829.txt with Pod::Man output DEBUG Filtering through /usr/bin/groff DEBUG Found groff 1.22.2 DEBUG render is /usr/bin/groff DEBUG render options are -man -Kutf8 -Tutf8 -rLL=199n DEBUG Writing to pipe to /usr/bin/groff DEBUG Writing chunk 1.022705078125 DEBUG Checking read DEBUG Writing chunk 2.022705078125 DEBUG Checking read DEBUG Done writing DEBUG Done reading. Output is 625 bytes DEBUG Output: ---- TST(1) + User Contributed Perl Documentation + TST(1) Bold heading · Italic item Description of the first argument. · also Italic Description of the second argument. perl v5.18.2 + 2021-09-01 + TST(1) ---- DEBUG filter_nroff is not set, so not filtering DEBUG Found groff 1.22.2 tst.pod isn't a temp file, so not unlinking. Finished writing to /tmp/6Dk7gFvniR. 'page: About to try calling /usr/bin/sensible-pager /tmp/6Dk7gFvniR lanx@ubuntu14-large:/tmp$

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery