Display a different color in REXX.
Moderator: mickeydusaor
Display a different color in REXX.
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!
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!
- Akatsukami
- Global Moderator
- Posts: 122
- Joined: Tue Oct 20, 2015 3:20 am
- Location: Bloomington, IL
- Contact:
Re: Display a different color in REXX.
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
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: Display a different color in REXX.
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
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
- prino
- Registered Member
- Posts: 68
- Joined: Sun Jun 01, 2014 4:15 am
- Location: Vilnius, Lithuania
- Contact:
Re: Display a different color in REXX.
Have I got news for you:Pandora-Box wrote:Displaying a message in RED is not possible as REXX does not support formatting over the terminal.
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
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: Display a different color in REXX.
I am afraid this does not work me :$ or I am missing some links here
zprogrammer
- Robert Sample
- Global Moderator
- Posts: 1897
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Display a different color in REXX.
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.
Re: Display a different color in REXX.
I am using TN3270 and zOS 1.13 but I am not able to see a different color. Perhaps it would work on OOREXX?
Re: Display a different color in REXX.
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
Nic
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