from Hacker News

Piping stdout and stderr to Preview (2021)

by arm on 2/22/22, 4:12 PM with 1 comments

  • by ttyprintk on 2/22/22, 4:24 PM

    `cupsfilter` being deprecated brings some risk. Speaking about Linux (the article is about Mac), you could:

    - Reformat man pages as html, and view them in `links2 -g`. There are multiple converters for the man format, some rely on Perl, others compiled with Haskell, etc.

    - To capture a stream, transform it, and view it in a GUI, some utilities will only read from a file. So, maybe use a named pipe.

    - If you just want excellent colorized output, try MANPAGER="sh -c 'col -bx | bat -l man -p'"