groff for Windows: man pages bad formatted when output in windows command prompt

177 Views Asked by At

From Windows command prompt I am using groff for Windows to display some man pages.

I can see that some characters are not being correctly outputted and in some case depending on the device being passed in as parameter I get some warnings.

For example:

  1. groff -man -Tascii < mymanpage.1 | more The man page is displayed but with below warning and some characters not correctly displayed.

    Warning: :48: warning: can't find character with input code 226

    Also I get characters not correctly displayed: enter image description here

  2. groff -man -Tutf8 < mymanpage.1 | more

    Even worse: enter image description here

  3. groff -man -Tlatin1 < mymanpage.1 | more

    enter image description here

1

There are 1 best solutions below

0
Ljm Dullaart On

Apparently, the Windows terminal does not understand the escape codes. If col is available on your system, you might:

groff -man -Tascii  mymanpage.1 | col -b |more