NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to render Groff / troff output directly on the terminal



On Mon, Jan 15, 2024 at 23:29:52 +0100, Martin Neitzel wrote:

> IRI> groff -ms -Tps test.ms > test.ps
> IRI> gs test.ps
> IRI>
> IRI> Is there a way to render groff / troff's output directly to the
> IRI> terminal similar to the way man outputs to the terminal?
> 
> Depending on your terminal's locale, format for the ascii, latin1,
> or utf9 backend.  That is, instead of
> 
> 	-Tps
> 
> use one of
> 
> 	-Tascii
> 	-Tlatin1
> 	-Tutf8

You can use also just use nroff(1) that will select the appropriate -T
automatically based on your locale settings.

-uwe


Home | Main Index | Thread Index | Old Index