1827840 Members
1534 Online
109969 Solutions
New Discussion

Colors using DCL

 
SOLVED
Go to solution
Katherine Elliott
Occasional Contributor

Colors using DCL

Is it possible/how do I incorporate the use of colors in DCL? For example, if I wanted the output highlighted in a certain color, what command series would I use?
5 REPLIES 5
John Abbott_2
Esteemed Contributor
Solution

Re: Colors using DCL

Hi Katherine, it is possible. Please find enclosed a simple "lazy" example file.

Kind Regards
John.
Don't do what Donny Dont does
Ian Miller.
Honored Contributor

Re: Colors using DCL

For lots of information on VT escape sequences then see
http://www.vt100.net/

for more infomation about VTxxx terminals and escape sequences than you ever want to know see
http://www.cs.utk.edu/~shuford/terminal/dec.html

and for those who are really obessed about escape sequences
http://bjh21.me.uk/all-escapes/all-escapes.txt
____________________
Purely Personal Opinion
Jan van den Ende
Honored Contributor

Re: Colors using DCL

Katherine,

... and for ease of use I always have the potentially usefull terminal escape sequences (in DCL symbol formatting) in a file, aptly calle ESV.INC, which I incluse at the bottom of my command files, and then GOSUB to define them.
At least, now I have symbols like R_ON, FEL, KNIP, ROOD (for reverse_on, high-intensity ( = fel in Dutch) flashing, ( = KNIPperend, red ( = rood). BIGU and BIGL mean BIG-upperhalf and BIG-lowerhalf. You make up any you like for yourself.
Find them once, use them forever....

Hth

Proost.

Have one on me (maybe at the Bootcamp in Nashua?)

jpe
Don't rust yours pelled jacker to fine doll missed aches.
John Travell
Valued Contributor

Re: Colors using DCL

The attached procedure is ancient, dating from the early 80's, but may be of some use. It sets each of the 4 colours that could be used on VT240's and VT340's to any one of 64 values.
You may find some of the DCL and escape strings to be of some value, or maybe not...
Aaron Sakovich
Super Advisor

Re: Colors using DCL

The attached procedure will show you common ANSI standard foreground and background colors.

HTH,
Aaron