Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* DECterm color settings for vt340 emulation
@ 1993-07-02 15:52 Glenn W. Hoffman
  1993-07-05 12:58 ` Stephen Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Glenn W. Hoffman @ 1993-07-02 15:52 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DECterm color settings for vt340 emulation
  1993-07-02 15:52 DECterm color settings for vt340 emulation Glenn W. Hoffman
@ 1993-07-05 12:58 ` Stephen Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Morris @ 1993-07-05 12:58 UTC (permalink / raw)


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!)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1993-07-05 12:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-07-02 15:52 DECterm color settings for vt340 emulation Glenn W. Hoffman
1993-07-05 12:58 ` Stephen Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox