Sponsored Content
Full Discussion: Who is Perderabo?
The Lounge What is on Your Mind? Chat with iBot - Our RSS Robot Girl Who is Perderabo? Post 63950 by Gollum on Friday 25th of February 2005 10:16:05 PM
Old 02-25-2005
Quote:
Originally Posted by Neo
What is UNIX?
An operating system.
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Follow-up w/ Perderabo re: mimetool

This is a follow-up re: this thread As I mentioned, this script works very nicely, thanks again. However, the ASCII data of the 'attached file' also shows below the body of the email message. Do you know of a way to 'disable' the attached text from showing? Although the file is attached,... (3 Replies)
Discussion started by: jwperry
3 Replies

2. Post Here to Contact Site Administrators and Moderators

Perderabo is a UNIX King

This post is here because I couldn't think of putting it anywhere else, and also I imagine it will be deleted since we cannot set this sort of a precedent. However I have to say Perderabo is a UNIX king. I have been a frequent user of these forums for over 2 years (under 2 different names) and... (5 Replies)
Discussion started by: saabir
5 Replies

3. UNIX for Dummies Questions & Answers

Question to a Perderabo script

Hi I tried this date script https://www.unix.com/showthread.php?p=16559#post16559 but I am probably doing something wrong. If i type: datecalc -a 2006 05 01 + 5 I get following error message: datecalc: Syntax error at line 207 If i look at line 207 i dont get it! But thats not surprising. ... (2 Replies)
Discussion started by: swissman24
2 Replies

4. Post Here to Contact Site Administrators and Moderators

apologies to Perderabo

Sorry Perderabo, really was only asking advice on where best to post, and if I should post. Didn't intend for that missive to be posted. (0 Replies)
Discussion started by: keith.m
0 Replies

5. What is on Your Mind?

Perderabo: Is that a common handle?

In an web based turn-based-strategy game I play (which until I am sure of the rules of this section of the forum, I'll not post a link to but is tiny and involves wars, warz even ;)), there is a player called Perderabo who has become rather powerful by the looks of things... Could this be one and... (2 Replies)
Discussion started by: Smiling Dragon
2 Replies
XParseColor()															     XParseColor()

Name
  XParseColor - look up RGB values from ASCII color name or translate hexadecimal value.

Synopsis
  Status XParseColor(display, colormap, spec, exact_def_return)
	Display *display;
	Colormap colormap;
	char *spec;
	XColor *exact_def_return;

Arguments
  display   Specifies a connection to an X server; returned from XOpenDisplay().

  colormap  Specifies a colormap associated with the screen on which to look up the color.  This argument is required, but is meaningful only
	    with Xcms color specifications.

  spec	    Specifies the color string (see the "Description" section).  Uppercase or lowercase does not matter.  If the color name is not in
	    the Host Portable Character Encoding, the result is implementation-dependent.

  exact_def_return
	    Returns  the  RGB values corresponding to the specified color name or hexadecimal specification, and sets its DoRed, DoGreen, and
	    DoBlue flags.

Returns
  Zero on failure, non-zero on success.

Description
  XParseColor() looks up the string name of a color with respect to the screen associated with the specified colormap.	It returns the	exact
  color value.	It or hexadecimal values specified, or translating the hexadecimal code into separate RGB values.

  XParseColor() takes a string specification of a color, typically from a user-specified command line or resource value, and returns the cor-
  responding red, green, and blue values, suitable for a subsequent call to XAllocColor or XStoreColor().   spec  can  be  given  in  several
  forms, and may be looked up in different ways depending on the form.

  o  Color name, such as "blue".  This form is looked up in the server's RGB database, a sample of which is listed in Appendix D, The Server-
     side Color Database.

  o  Xcms color name, such as TekHVC:0.0/100.0/0.0.  This form is looked up in the client-side database for the screen	associated  with  the
     specified	colormap.   This  form is supported starting in Release 5.  For more information on this form of color specification, see the
     Programmer's Supplement for Release 5, or the Third Edition of Volume One.

  o  Hexadecimal specification such as #3a7.  This form consists of an initial sharp sign character followed by one of the following formats:

	#RGB   (one character per color)
	#RRGGBB   (two characters per color)
	#RRRGGGBBB   (three characters per color)
	#RRRRGGGGBBBB	(four characters per color)

     where R, G, and B represent single hexadecimal digits (uppercase or lowercase).  The hexadecimal strings must be NULL-terminated so that
     XParseColor()  knows  when it has reached the end.  When fewer than 16 bits each are specified, they represent the most significant bits
     of the value.  For example, #3a7 is the same as #3000a0007000.  The hexadecimal style is discouraged in Release 5 and later.

  Status is zero on failure, non-zero on success.  This routine will fail if the initial character is a sharp sign but the  string  otherwise
  fails  to  fit one of the above formats, or if the initial character is not a sharp sign and the named color does not exist in the server's
  database.

  For more information, see Volume One, Chapter 7, Color and in the Third Edition, the chapter on Device-Independent Color.

Structures
     typedef struct {
	 unsigned long pixel;
	 unsigned short red, green, blue;
	 char flags;	/* DoRed, DoGreen, DoBlue */
	 char pad;
     } XColor;

Errors
  BadColor  Invalid colormap.

See Also
  XBlackPixel(), XWhitePixel(), XAllocColor(), XcmsAllocColor(), XAllocColorCells(), XAllocColorPlanes(), XAllocNamedColor(), XcmsAllocNamed-
  Color(),  XFreeColors(), XLookupColor(), XQueryColor(), XQueryColors(), XStoreColor(), XcmsStoreColor(), XStoreColors(), XcmsStoreColors(),
  XStoreNamedColor().

Xlib - Color Cells														     XParseColor()
All times are GMT -4. The time now is 03:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy