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

Setting background color with SMG$ calls

 
Stephen Eickhoff_1
Frequent Advisor

Setting background color with SMG$ calls

I am calling smg$put_line from BASIC and setting attributes like foreground color and inverse video. I know how to set color using smg$m_user1 in the rendition-set argument, referring to smgterm.txt. What I would like to do is set both the foreground and background colors, for which I know the escape codes, but I don't know how to properly define.
1 REPLY 1
Hoff
Honored Contributor

Re: Setting background color with SMG$ calls

If you have a support contract, call up HP and ask them to find the following support article for you, and other old examples that were once around:

Example-C How To Display Color Text Using SMG$ Routines
The SMG$M_USER1 through SMG$M_USER8 can be used to set user-defined attributes for the rendition-set argument to the following calls: SMG$CHANGE_RENDITION
http://h18000.www1.hp.com/support/asktima/appl_tools/CHAMP_SRC940221001554.html

This example code was once directly available, but looks to have been moved or deleted now; neither the James search tool nor Google return these old examples.