简体   繁体   中英

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

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: 在此处输入图像描述

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

    Even worse: 在此处输入图像描述

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

    在此处输入图像描述

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 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM