9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Jeff Sickel <jas@corpus-callosum.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] where to get color troff?
Date: Mon, 16 May 2011 09:56:05 -0500	[thread overview]
Message-ID: <EEBB36E3-D14B-4D47-A938-8AEB31857A97@corpus-callosum.com> (raw)
In-Reply-To: <BANLkTin=SPSMDyYtzda12y4Msv4q5F9OKQ@mail.gmail.com>


On May 16, 2011, at 8:36 AM, Russ Cox wrote:

>> They work great for troff, now I just need to investigate applying the same technique to grap.
> 
> You can do it in pic (and I think grap) by just emitting some text
> before drawing something.  In fact you can do arbitrary postscript
> code.  This snippet uses the Pr string to push the current color
> on the stack and then switch to gray.  The Pb string restores the
> previous color from the stack.

Thanks, that made me look back at the docks (and Sape's original
post) and remember that the emitted text needs to be
.at the beginning of the line.




      reply	other threads:[~2011-05-16 14:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-12  6:09 Fernan Bolando
2011-04-12  6:38 ` Peter A. Cejchan
2011-04-12  7:16   ` Fernan Bolando
2011-04-12  7:33     ` Sape Mullender
2011-04-12  8:24       ` Fernan Bolando
2011-04-12 12:31         ` pmarin
2011-05-14  0:43       ` Jeff Sickel
2011-05-16 13:36         ` Russ Cox
2011-05-16 14:56           ` Jeff Sickel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EEBB36E3-D14B-4D47-A938-8AEB31857A97@corpus-callosum.com \
    --to=jas@corpus-callosum.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).