From: mors@tessella.co.uk (Stephen Morris)
Subject: Re: DECterm color settings for vt340 emulation
Date: Mon, 5 Jul 1993 12:58:38 GMT [thread overview]
Message-ID: <C9p01q.F2w@tessella.co.uk> (raw)
In-Reply-To: C9Jo2s.IA9@crdnns.crd.ge.com
In article <C9Jo2s.IA9@crdnns.crd.ge.com> csdgwh@utica.ge.com
(Glenn W. Hoffman) writes:
>An associate of mine is trying to use DECterm on a VAX to emulate a
>VT340 terminal. His biggest problem is that the application that
>requires a VT340 also requires the user to set custom colors in the
>VT340.
>
>Is there a way to set custom colors in DECterm the way his users are
>accustomed to doing in their VT340s?
>
>Thanks for any help.
>
>Glenn
My application, which uses DECterm Regis graphics, copies a setup file to the
DECterm to set the colours once the DECterm has been set to graphics mode. The
format of the file (excerpted from the user notes) is as follows:
1) The first line must be "S(M".
2) The next sixteen lines are of the form
<colour>(H<hue>L<lgt>S<sat>)
where <colour> is the number of the colour (in the range 0 to 15)m
<hue> is the colour hue in the range 0 to 360, <lgt> the lightness in the
range 0 to 100, and <sat> the saturation in the range 0 to 100.
3) The line following the HLS values must be a closing bracket, ")".
4) Finally, there is a line of the form "W(I(H<hue>L<lgt>S<sat>))",
which give the HLS values of the screen background.
I'm not sure if the colour number can go beyond 15 - my application is
restricted to 16 colours. Also, I don't believe that the line breaks are
important, but giving the values one per line reduces the chances of the user
making errors. The default setup supplied with the application is:
S(M
0(H0L100S100)
1(H0L0S0)
2(H0L50S100)
3(H120L50S100)
4(H240L50S100)
5(H60L50S100)
6(H180L50S100)
7(H300L50S100)
8(H0L25S100)
9(H120L25S100)
10(H240L25S100)
11(H60L25S100)
12(H180L25S100)
13(H300L25S100)
14(H320L50S100)
15(H20S30L80)
)
W(I(H0L100S100))
Hope that this helps,
Dr Stephen Morris, Tessella Support Services plc (mors@tessella.co.uk)
(Standard disclaimers apply - don't blame me if it doesn't work!)
prev parent reply other threads:[~1993-07-05 12:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-07-02 15:52 DECterm color settings for vt340 emulation Glenn W. Hoffman
1993-07-05 12:58 ` Stephen Morris [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox