Operating System - OpenVMS
Showing results for 
Search instead for 
Did you mean: 

Colors using DCL

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?
John Abbott_2
Esteemed Contributor

Re: Colors using DCL

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

Kind Regards
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

for more infomation about VTxxx terminals and escape sequences than you ever want to know see

and for those who are really obessed about escape sequences
Purely Personal Opinion
Jan van den Ende
Honored Contributor

Re: Colors using DCL


... 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....



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

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.