Linux command
colcrt 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Filter nroff output
colcrt [file]
Suppress underlining
colcrt -2 [file]
Half-line handling
colcrt - [file]
Process nroff output
nroff -man [man.1] | colcrt
说明
colcrt filters nroff output for CRT (terminal) preview. It handles reverse line feeds and translates underlines and half-line motions into forms suitable for terminal display. The tool is primarily useful for previewing formatted man pages and other nroff output on terminals that cannot handle overstriking. It converts underlining to dashes on a separate line.
参数
- -
- Print half-lines as full lines, useful for terminals without half-line capability.
- -2
- Suppress underlining entirely, printing only the text.
FAQ
What is the colcrt command used for?
colcrt filters nroff output for CRT (terminal) preview. It handles reverse line feeds and translates underlines and half-line motions into forms suitable for terminal display. The tool is primarily useful for previewing formatted man pages and other nroff output on terminals that cannot handle overstriking. It converts underlining to dashes on a separate line.
How do I run a basic colcrt example?
Run `colcrt [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does - do in colcrt?
Print half-lines as full lines, useful for terminals without half-line capability.