From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7943d0048518d7c7 X-Google-Attributes: gid1164f8,public X-Google-Thread: 103734,7943d0048518d7c7 X-Google-Attributes: gid103734,public X-Google-ArrivalTime: 1993-07-05 07:25:20 PST Xref: gmd.de comp.sys.dec:8592 comp.windows.x:21584 Newsgroups: comp.sys.dec,comp.windows.x Path: gmd.de!xlink.net!howland.reston.ans.net!spool.mu.edu!uunet!pipex!uknet!tss!mors From: mors@tessella.co.uk (Stephen Morris) Subject: Re: DECterm color settings for vt340 emulation Message-ID: Organization: Tessella Support Services plc, Abingdon, England References: Date: Mon, 5 Jul 1993 12:58:38 GMT In article 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 (HLS) where is the number of the colour (in the range 0 to 15)m is the colour hue in the range 0 to 360, the lightness in the range 0 to 100, and 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(HLS))", 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!)