View previous topic :: View next topic |
Author |
Message |
dohellwithmf Beginner
Joined: 12 Jul 2007 Posts: 55 Topics: 23
|
Posted: Mon Sep 28, 2009 3:37 pm Post subject: colored display in REXX |
|
|
hi all,
can we display any message in different color. I want to display a message in yellow or any other color using SAY command. Is it possible? what is the syntax ?
TIA, Mayank |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
tcurrier Intermediate
Joined: 10 Feb 2006 Posts: 188 Topics: 68
|
Posted: Mon Sep 28, 2009 5:38 pm Post subject: |
|
|
Kolusu, I'm wondering if the link you pointed Dohell to is for displaying
panel fields in varying colors....
In other words, is there a way to display the message 'hello there' in yellow in the example below ?
Code: | /* REXX */
myvar = 'hello there'
say myvar
exit |
|
|
Back to top |
|
|
acevedo Beginner
Joined: 03 Dec 2002 Posts: 127 Topics: 0 Location: Europe
|
Posted: Tue Sep 29, 2009 1:28 am Post subject: |
|
|
what about 'playing' with ISRZ messages?
Code: |
zerrtp=WORD('NOTIFY WARNING ACTION CRITICAL',3)
zerrsm=""
zerrlm="This message will be displayed in RED!"
ADDRESS ISPEXEC "setmsg msg(isrz003)"
|
|
|
Back to top |
|
|
dohellwithmf Beginner
Joined: 12 Jul 2007 Posts: 55 Topics: 23
|
Posted: Tue Sep 29, 2009 3:46 pm Post subject: |
|
|
Acevedo,
can you pls explain the commands used in this?
What if i want to display messages in blue/green etc....which parameter to change? |
|
Back to top |
|
|
stefan Beginner
Joined: 20 Nov 2003 Posts: 41 Topics: 2 Location: Germany
|
Posted: Wed Sep 30, 2009 1:46 am Post subject: Re: colored display in REXX |
|
|
dohellwithmf wrote: | I want to display a message in yellow or any other color using SAY command. |
The simple answer is: NO.
The "say" command writes a line to the output stream. If it runs in foreground, it displays its output on the terminal. If it runs in background, the output is routed to SYSTSPRT.
There is no formatting of the data stream. And there is no chance to insert attribute characters as in a native 3270 data stream.
If you want to do so, please use ISPF dialog manager services, as others have already mentioned. When you use ISPF messages, you should have a look at the .TYPE parameter when defining a message. The different values of this parameter leads to a different color being used when displaying the message. But you only can switch between white, yellow, and red.
If you use ISPF panels and define a special field for your message, the palette contains 7 colors.
Read the ISPF Dialog Developer's Guide and Reference manual carefully. Undreamt-of possibilities will open up for you. _________________ Stefan
There are 10 types of people in the world: Those who understand binary, and those who don't. |
|
Back to top |
|
|
dohellwithmf Beginner
Joined: 12 Jul 2007 Posts: 55 Topics: 23
|
Posted: Wed Sep 30, 2009 8:43 am Post subject: |
|
|
Thanks for the pointers Stefan !! |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Sun Oct 04, 2009 12:17 pm Post subject: |
|
|
Some 3270 emulators will support the inclusion of 3270 data stream orders in a Say statement but most will not. Don't depend on it, since most do not support this, and real 3270s do not support it either. Of course, there probably are no real 3270s left, but that is another issue. _________________ New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html. |
|
Back to top |
|
|
|
|