Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 09 AUG 2002 06:13:47PM Karl wrote:

Hello everyone,

I've been playing with exporting the data from our arev into an external database for use in a web based error reporting application. I'm basically creating a JPG of the window on the fly using a combination of GD and PHP. Anyways, I was wondering where I could get a list of the internal color codes arev uses for prompts and labels that also lists the corresponding human readable color? Any pointers in the right direction would be greatly appreciated. TIA

Karl


At 09 AUG 2002 07:24PM Richard Hunt wrote:

Karl,

The attribute equates are as follows…

BACKGROUND=BLACK'

BACKGROUND=BLUE'

BACKGROUND=GREEN'

BACKGROUND=CYAN'

BACKGROUND=RED'

BACKGROUND=MAGENTA'

BACKGROUND=BROWN'

BACKGROUND=WHITE'

BACKGROUND=BLACK BLINK'

BACKGROUND=BLUE BLINK'

BACKGROUND=GREEN BLINK'

BACKGROUND=CYAN BLINK'

BACKGROUND=RED BLINK'

BACKGROUND=MAGENTA BLINK'

BACKGROUND=BROWN BLINK'

BACKGROUND=WHITE BLINK'

FOREGROUND=BLACK'

FOREGROUND=BLUE'

FOREGROUND=GREEN'

FOREGROUND=CYAN'

FOREGROUND=RED'

FOREGROUND=MAGENTA'

FOREGROUND=BROWN'

FOREGROUND=WHITE'

FOREGROUND=DARK GREY'

FOREGROUND=LIGHT BLUE'

FOREGROUND=LIGHT GREEN'

FOREGROUND=LIGHT CYAN'

FOREGROUND=LIGHT RED'

FOREGROUND=LIGHT MAGENTA'

FOREGROUND=YELLOW'

FOREGROUND=BRIGHT WHITE'

You must subtract 1 from the values. So that background black would be 0 (zero, or 1 - 1), and foreground bright white would be 15 (16 - 1).

The actual print code would be in the format of…

CHAR(27):'C':CHAR(BACKGROUND):CHAR(FOREGROUND)

So… if you want to print with a black background and a yellow foreground then the code is…

CHAR(27):'C':CHAR(0):CHAR(14)


At 09 AUG 2002 10:46PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

At 10 AUG 2002 08:01PM Karl wrote:

  • third_party_content/community/commentary/forums_nonworks/0e21eb9b3fb5589085256c10007a1cdc.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1