man-pages input, how to forward esc seq to tty output dev

Phi Debian <[email protected]>
Newsgroups gmane.comp.printing.groff.general
Message-ID <CAJOr74h+pazVmbOvSn0KfmKCQ3U1q-JQj=GpqK+81ba6eBP9pQ@mail.gmail.com>
Hi All
I got a tool producing man-pages, i.e page that will be displayed by man(1)
on tty device UTF8 capable with SGR's (namely vt100 emulator)

In my generated man-page (that will feed groff...grotty) I'd like to be
able to emit ledgit escape sequence (again when in tty mode) but I can't
find a way to emit the exact color I need. (Or other attributes)

Is there any advise.

So far I tried
Here is text in \*[red]red\*[], \*[green]green\*[], and \*[blue]blue\[].

But I never get it either with
man -l foo.1
groff -man -Tutf8 -c foo.1

Thanx in advance.
Cheers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.