Re: Running forms in color-mono

From: Tommy Wareing <p0070621_at_oxford-brookes.ac.uk>
Date: 18 Nov 1993 05:18:34 -0600
Message-ID: <CGoo0t.930_at_uk.ac.brookes>


Michel Lalonde (mla_at_132.203.6.11) wrote:
> Forms have to be run on PCs with color or mono monitors.
> We have ORATERM.R for color and MONO.R for mono and we want to
> switch dynamicaly from one to the other according to the type of
> terminal.
> The documentation says:
> RUNFORM -C [FILENAME:]MAPPING FORMNAME ...
> where MAPPING is the mapping name.
> In Oracle*Terminal I have a resource name, a product name, a
> device name but where is the mapping name ?
> Is there any other solution to solve that color-mono problem ?

The filename is the name of the resource file (defauts to ORATERM). The mapping name is the device within the file. The application supplies the product name.

So you need to use RUNFORM -C DEFAULT <FORMNAME> or RUNFORM -C MONO:DEFAULT <FORMNAME>

You might want to put both devices into one resource file? So with the default and colour devices being the same (ie. use three devices), and the file called ORATERM.R, you could use:

RUNFORM -C ORATERM:DEFAULT <FORMNAME>
RUNFORM -C ORATERM:COLOR <FORMNAME>
RUNFORM -C DEFAULT <FORMNAME>      

RUNFORM <FORMNAME>
RUNFORM -C ORATERM:MONO <FORMNAME>
RUNFORM -C MONO <FORMNAME>

The first four are equivalent, and the last two are equivalent. YMMV, OC.

--
 _________________________   __________________________________________
/  Tommy Wareing          \ /  I've been looking for an original sin,  \
|  p0070621_at_brookes.ac.uk  X   One with a twist and a bit of a spin    |
\  0865-483389            / \     -- Pandora's Box, Jim Steinman       /
 ~~~~~~~~~~~~~~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Received on Thu Nov 18 1993 - 12:18:34 CET

Original text of this message