|
|
| Author |
Message |
anirudh1985 Currently Banned Active User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
| Is there a way we can change the color of say command. What I intend to do is compare two files and if they're unequal, then at the console the contents of two files must be displayed but in different colors say green for file1 and red for file2. |
|
| Back to top |
|
 |
References
|
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3265 Location: Charlotte,NC USA
|
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 3082 Location: italy
|
|
|
|
| Quote: |
| What I intend to do is compare two files and if they're unequa |
why reinvent the wheel, what' s wrong with ISPF superc ?? |
|
| Back to top |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 510 Location: work
|
|
|
|
I prefer to use the editor and then use the COMPARE command to show the differences with another file. I think it uses SUPERC under the covers.
Instead of side-by-side, they lines are interleaved, with only changes being highlighted.
========
If you really want to use SAY:
| Code: |
/*rexx */
Say 'HELLO, WORLD!'
Say '1D60'x || 'HELLO, WORLD!'
Say '1D38'x || 'HELLO, WORLD!'
Say '1DC8'x || 'HELLO, WORLD!'
Say '1D40'x || 'HELLO, WORLD!'
|
but probably not supported to use Say in this way. |
|
| Back to top |
|
 |
anirudh1985 Currently Banned Active User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
| Thanx a lot guys..I will definitely look into the reference ....we are developing a tool in rexx...so ihad to start with file comparison |
|
| Back to top |
|
 |
|
|