From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) From: Jeff Sickel In-Reply-To: Date: Mon, 16 May 2011 09:56:05 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <252037CF-B6B1-4241-AC17-AC7CBBA7CB86@corpus-callosum.com> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] where to get color troff? Topicbox-Message-UUID: e463d882-ead6-11e9-9d60-3106f5b1d025 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. >=20 > 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.