[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

3659.0. "VMS 5.3 / change colour for window through ESC ??" by HAMSC3::CHRISTIAN () Wed Nov 14 1990 08:57

I've a customer who's system is running with VMS 5.3 and DECwindows. He wants
to know if it's possible to modify the colour of the background and forground
of the terminal by an application or DCL-command.

I think, that he would set the window to a VT340 and then he could use the 
ESC-sequences to change the colour. Is this a way or is there any other 
possibility to change this.

-- Christian
    
T.RTitleUserPersonal
Name
DateLines
3659.1...WIDGIT::WESTSCARY : A programmer with a screwdriver.Wed Nov 14 1990 09:4112
  Do they wish to change the colors dynamically or just when the decterm is
created ?

  They could use the CREAT/TERM command to give each DECterm a different
color appearance.

  I do believe that the ESC sequences do work (at least to a point).  I've
used them in the past (via the 241_COLOR.COM file), but not anymore.

					-=> Jim <=-

3659.2STAR::KLEINSORGEFred Kleinsorge, VMS DevelopmentThu Nov 15 1990 18:3019
    You can change colors in two ways.
    
    The first is to send either ReGIS or SIXEL sequences to change the
    colormap values.  This is the classic VT240/340 means of changing
    the background and foreground globally.  However, you will need to
    figure out which map foreground and background are using.
    
    The second, and simpler and standard, is ANSI colors SGR's.  These
    sequences allow you to set the background and foreground to any of
    eight colors independently of the screen background and any other
    text colors.  These are gotten to by
    
    		<ESC>[3f;4bm
    
    where the "f" and "b" are numbers from 0 to 7 to select one of the
    eight colors (black, red, green, blue, cyan, magenta, white, yellow).
    The sequence is the same as the one that selects things like BOLD, and
    the parameters are just new ones not in earlier DEC terminals.