Display a different color in REXX.

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Akshypal
Registered Member
Posts: 54
Joined: Sun Jun 16, 2013 9:51 am

Display a different color in REXX.

Post by Akshypal »

Hi,

In REXX, is it possible to display a message in different colour? I want to display a message in RED or some other colour when using SAY command. Is it possible? What is the syntax should I use?

Thanks!
User avatar
Akatsukami
Global Moderator
Global Moderator
Posts: 122
Joined: Tue Oct 20, 2015 3:20 am
Location: Bloomington, IL
Contact:

Re: Display a different color in REXX.

Post by Akatsukami »

In Rexx, no. However you can do so on an ISPF panel.
"I come to the conclusion that, men loving according to their own will and fearing according to that of the prince, a wise prince should establish himself on that which is in his own control and not in that of others." -- Niccolò Machiavelli
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Display a different color in REXX.

Post by zprogrammer »

Displaying a message in RED is not possible as REXX does not support formatting over the terminal.

Also OTOH, You could check on the SETMSG with zerrtp='ACTION' check if this will help your requirement

Code: Select all

/*REXX*/                                 
 zerrtp='ACTION'                         
 zerrsm=""                               
 zerrlm="Red message"                    
 ADDRESS ISPEXEC "setmsg msg(isrz003)"   
zprogrammer
User avatar
prino
Registered Member
Posts: 68
Joined: Sun Jun 01, 2014 4:15 am
Location: Vilnius, Lithuania
Contact:

Re: Display a different color in REXX.

Post by prino »

Pandora-Box wrote:Displaying a message in RED is not possible as REXX does not support formatting over the terminal.
Have I got news for you:

Code: Select all

/* REXX */
say x2c(C3114BF0) x2c(1DF8) 'HELLO, WORLD!'
"ispclear" /* or any z/OS ClrScr routine*/
pull
say x2c(C3114BF01DF8) 'HELLO, WORLD!'
"ispclear"
pull
say x2c(C3114BF0 2903 C0F0 41F2 42F6) 'HELLO, WORLD!' x2c(1DF0)
exit
Robert AH Prins
robertahprins @ the.17+Gb.Google thingy
Some z/OS code here
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Display a different color in REXX.

Post by zprogrammer »

I am afraid this does not work me :$ or I am missing some links here
zprogrammer
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Display a different color in REXX.

Post by Robert Sample »

One thing to be aware of -- the terminal type you are using in your terminal emulator (PCCOMM, REFLECTION, HUMMINGBIRD, TN3270, or whatever) must be able to support use of extended attributes. If the terminal type does not support extended attributes, you cannot get a red display no matter what you do.
Akshypal
Registered Member
Posts: 54
Joined: Sun Jun 16, 2013 9:51 am

Re: Display a different color in REXX.

Post by Akshypal »

I am using TN3270 and zOS 1.13 but I am not able to see a different color. Perhaps it would work on OOREXX?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Display a different color in REXX.

Post by nicc »

Works on Tom Brennan's Vista. Changing the language will not help. Besides, I do not know if OO Rexxx is supported on the mainframe yet.
Regards
Nic
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”