Kbase P97337: How to display a reverse color message using a CHUI program on UNIX
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/11/2004 |
|
Status: Unverified
GOAL:
How to display a reverse color message using a CHUI program on UNIX
GOAL:
Which terminal definition is needed in UNIX to be able to use COLOR REVERSE.
FACT(s) (Environment):
UNIX
FIX:
1) Set the environment variable TERM to ansic
TERM=ansic; export TERM
2) Backup your current protermcap file.
3) Locate the definition for ansic in the PROTERMCAP add the following definitions in the color definition section:
:COLOR 62 RED-INV=\E[31m\E[7m:\E[34m\E[27m:\
4) Set your terminal or teminal emulator to emulate ANSI or ANSIC.
5) Run the following program to test it:
/* Program to test color reverse */
DISPLAY " Black on red (Reverse color example)" WITH FRAME f COLOR RED-INV WIDTH 80 20 DOWN.
PAUSE(2).
QUIT.