🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.soft-sys.andrew
Article #1858

Re: Selective *.formatcommand and *.printcommand

#1858
From: Gary Keim
Date: Mon, 03 Jun 1991 20:23
37 lines
1799 bytes
Excerpts from misc: 3-Jun-91 Selective *.formatcommand a.. Chandra
Venkatraman@iag. (272)

> Is it possible to have different .formatcommand and .printcommand
> depending on the printer chosen from the 'set printer' menu option?
> We have different printers and I would like to have .formatcommand
> slightly different if one specific printer is chosen.


You can have preferences that are dependant on environment variables. 
Try % help preferences.

Environment-specific preferences

    If you need to have preferences that are only active when a certain
    environment variable is set, you can use the following preference
    forms:

    ?E=environmentvariable=value:preference
    ?E!environmentvariable=value:preference

    Meaningful colons within these specifications can be quoted with the
    backslash character ("\").  For example, the following line would
    cause typescripts you start while the "DISPLAY" environment variable
    is "pgh:0" to be 600x600 pixels.

    ?E=DISPLAY=pgh\:0:typescript.geometry:600x600

You could have some preference lines like this:

?E=PRINTER=plum:*.formatcommander: <foo bar>

... where formatcommand would be <foo bar> when the environment variable
PRINTER is set to "plum."  Will this do the trick?

Gary Keim
ATK Group
Technical Details
Message-ID: <McGeJ7200VsW40daxu@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!ANDREW.CMU.EDU!gk5g+
References: <4cGcErID0O2L0ngr40@kitzbuhl.iag.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!ANDREW.CMU.EDU!gk5g+
From: gk5g+@ANDREW.CMU.EDU (Gary Keim)
Newsgroups: comp.soft-sys.andrew
Subject: Re: Selective *.formatcommand and *.printcommand
Message-ID: <McGeJ7200VsW40daxu@andrew.cmu.edu>
Date: 3 Jun 91 20:23:35 GMT
References: <4cGcErID0O2L0ngr40@kitzbuhl.iag.hp.com>
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: world
Organization: The Internet
Lines: 37