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



Hello all,

On Mon, Jan 15, 2024 at 8:00 PM Valery Ushakov <uwe%stderr.spb.ru@localhost> wrote:
>
> 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

I experimented with your suggestions.

groff -ms -Tascii test.ms | less

works as well as

nroff -ms test.ms | less

Thank you all for your help.

Regards
rambius


-- 
Tangra Mega Rock: http://www.radiotangra.com


Home | Main Index | Thread Index | Old Index