|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: X
Length: 6177 (0x1821)
Names: »XStoreColors.3X«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat3/XStoreColors.3X«
0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆ 0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 ┆ u_ a_ l Library Funct┆ 0x0040…0060 69 6f 6e 73 20 20 20 20 20 20 20 20 58 53 74 6f 72 65 43 6f 6c 6f 72 73 28 33 58 29 0a 0a 0a 0a ┆ions XStoreColors(3X) ┆ 0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆ 0x0080…00a0 20 20 58 53 74 6f 72 65 43 6f 6c 6f 72 73 2c 20 58 53 74 6f 72 65 43 6f 6c 6f 72 2c 20 58 53 74 ┆ XStoreColors, XStoreColor, XSt┆ 0x00a0…00c0 6f 72 65 4e 61 6d 65 64 43 6f 6c 6f 72 20 2d 20 73 65 74 20 63 6f 6c 6f 72 73 0a 0a 53 08 53 08 ┆oreNamedColor - set colors S S ┆ 0x00c0…00e0 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 ┆S SY Y Y YN N N NT T T TA A A AX┆ 0x00e0…0100 08 58 08 58 08 58 0a 20 20 20 20 20 58 53 74 6f 72 65 43 6f 6c 6f 72 73 28 5f 08 64 5f 08 69 5f ┆ X X X XStoreColors(_ d_ i_┆ 0x0100…0120 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 2c 20 5f 08 63 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 5f ┆ s_ p_ l_ a_ y, _ c_ o_ l_ o_ r_┆ 0x0120…0140 08 6d 5f 08 61 5f 08 70 2c 20 5f 08 63 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 2c 20 5f 08 6e 5f 08 ┆ m_ a_ p, _ c_ o_ l_ o_ r, _ n_ ┆ 0x0140…0160 63 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 5f 08 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 44 69 73 ┆c_ o_ l_ o_ r_ s) Dis┆ 0x0160…0180 70 6c 61 79 20 2a 5f 08 64 5f 08 69 5f 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 3b 0a 20 20 20 ┆play *_ d_ i_ s_ p_ l_ a_ y; ┆ 0x0180…01a0 20 20 20 20 20 20 20 20 43 6f 6c 6f 72 6d 61 70 20 5f 08 63 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 ┆ Colormap _ c_ o_ l_ o_ r┆ 0x01a0…01c0 5f 08 6d 5f 08 61 5f 08 70 3b 0a 20 20 20 20 20 20 20 20 20 20 20 58 43 6f 6c 6f 72 20 5f 08 63 ┆_ m_ a_ p; XColor _ c┆ 0x01c0…01e0 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 5b 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 5f ┆_ o_ l_ o_ r[]; int _┆ 0x01e0…0200 08 6e 5f 08 63 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 5f 08 73 3b 0a 0a 20 20 20 20 20 58 53 74 6f ┆ n_ c_ o_ l_ o_ r_ s; XSto┆ 0x0200…0220 72 65 43 6f 6c 6f 72 28 5f 08 64 5f 08 69 5f 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 2c 20 5f ┆reColor(_ d_ i_ s_ p_ l_ a_ y, _┆ 0x0220…0240 08 63 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 5f 08 6d 5f 08 61 5f 08 70 2c 20 5f 08 63 5f 08 6f 5f ┆ c_ o_ l_ o_ r_ m_ a_ p, _ c_ o_┆ 0x0240…0260 08 6c 5f 08 6f 5f 08 72 29 0a 20 20 20 20 20 20 20 20 20 20 20 44 69 73 70 6c 61 79 20 2a 5f 08 ┆ l_ o_ r) Display *_ ┆ 0x0260…0280 64 5f 08 69 5f 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ┆d_ i_ s_ p_ l_ a_ y; ┆ 0x0280…02a0 43 6f 6c 6f 72 6d 61 70 20 5f 08 63 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 5f 08 6d 5f 08 61 5f 08 ┆Colormap _ c_ o_ l_ o_ r_ m_ a_ ┆ 0x02a0…02c0 70 3b 0a 20 20 20 20 20 20 20 20 20 20 20 58 43 6f 6c 6f 72 20 2a 5f 08 63 5f 08 6f 5f 08 6c 5f ┆p; XColor *_ c_ o_ l_┆ 0x02c0…02e0 08 6f 5f 08 72 3b 0a 0a 20 20 20 20 20 58 53 74 6f 72 65 4e 61 6d 65 64 43 6f 6c 6f 72 28 5f 08 ┆ o_ r; XStoreNamedColor(_ ┆ 0x02e0…0300 64 5f 08 69 5f 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 2c 20 5f 08 63 5f 08 6f 5f 08 6c 5f 08 ┆d_ i_ s_ p_ l_ a_ y, _ c_ o_ l_ ┆ 0x0300…0320 6f 5f 08 72 5f 08 6d 5f 08 61 5f 08 70 2c 20 5f 08 63 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 2c 20 ┆o_ r_ m_ a_ p, _ c_ o_ l_ o_ r, ┆ 0x0320…0340 5f 08 70 5f 08 69 5f 08 78 5f 08 65 5f 08 6c 2c 20 5f 08 66 5f 08 6c 5f 08 61 5f 08 67 5f 08 73 ┆_ p_ i_ x_ e_ l, _ f_ l_ a_ g_ s┆ 0x0340…0360 29 0a 20 20 20 20 20 20 20 20 20 20 20 44 69 73 70 6c 61 79 20 2a 5f 08 64 5f 08 69 5f 08 73 5f ┆) Display *_ d_ i_ s_┆ 0x0360…0380 08 70 5f 08 6c 5f 08 61 5f 08 79 3b 0a 20 20 20 20 20 20 20 20 20 20 20 43 6f 6c 6f 72 6d 61 70 ┆ p_ l_ a_ y; Colormap┆ 0x0380…03a0 20 5f 08 63 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 5f 08 6d 5f 08 61 5f 08 70 3b 0a 20 20 20 20 20 ┆ _ c_ o_ l_ o_ r_ m_ a_ p; ┆ 0x03a0…03c0 20 20 20 20 20 20 63 68 61 72 20 2a 5f 08 63 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 3b 0a 20 20 20 ┆ char *_ c_ o_ l_ o_ r; ┆ 0x03c0…03e0 20 20 20 20 20 20 20 20 75 6e 73 69 67 6e 65 64 20 6c 6f 6e 67 20 5f 08 70 5f 08 69 5f 08 78 5f ┆ unsigned long _ p_ i_ x_┆ 0x03e0…0400 08 65 5f 08 6c 3b 0a 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 5f 08 66 5f 08 6c 5f 08 61 5f ┆ e_ l; int _ f_ l_ a_┆ 0x0400…0420 08 67 5f 08 73 3b 0a 0a 41 08 41 08 41 08 41 52 08 52 08 52 08 52 47 08 47 08 47 08 47 55 08 55 ┆ g_ s; A A A AR R R RG G G GU U┆ 0x0420…0440 08 55 08 55 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 ┆ U UM M M ME E E EN N N NT T T T┆ 0x0440…0460 53 08 53 08 53 08 53 0a 20 20 20 20 20 5f 08 63 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 20 20 20 20 ┆S S S S _ c_ o_ l_ o_ r ┆ 0x0460…0480 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 70 69 78 65 6c 20 61 6e 64 20 52 47 42 20 76 61 6c ┆ Specifies the pixel and RGB val┆ 0x0480…04a0 75 65 73 20 6f 72 20 74 68 65 20 63 6f 6c 6f 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ues or the color ┆ 0x04a0…04c0 6e 61 6d 65 20 73 74 72 69 6e 67 20 28 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 72 65 64 29 2e 0a ┆name string (for example, red). ┆ 0x04c0…04e0 0a 20 20 20 20 20 5f 08 63 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 20 20 20 20 20 53 70 65 63 69 66 ┆ _ c_ o_ l_ o_ r Specif┆ 0x04e0…0500 69 65 73 20 61 6e 20 61 72 72 61 79 20 6f 66 20 63 6f 6c 6f 72 20 64 65 66 69 6e 69 74 69 6f 6e ┆ies an array of color definition┆ 0x0500…0520 20 73 74 72 75 63 74 75 72 65 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 20 62 65 ┆ structures to be┆ 0x0520…0540 20 73 74 6f 72 65 64 2e 0a 0a 20 20 20 20 20 5f 08 63 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 5f 08 ┆ stored. _ c_ o_ l_ o_ r_ ┆ 0x0540…0560 6d 5f 08 61 5f 08 70 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 63 6f 6c 6f 72 6d 61 70 2e ┆m_ a_ p Specifies the colormap.┆ 0x0560…0580 0a 0a 20 20 20 20 20 5f 08 64 5f 08 69 5f 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 20 20 20 53 ┆ _ d_ i_ s_ p_ l_ a_ y S┆ 0x0580…05a0 70 65 63 69 66 69 65 73 20 74 68 65 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 74 6f 20 74 68 65 20 58 ┆pecifies the connection to the X┆ 0x05a0…05c0 20 73 65 72 76 65 72 2e 0a 0a 20 20 20 20 20 5f 08 66 5f 08 6c 5f 08 61 5f 08 67 5f 08 73 20 20 ┆ server. _ f_ l_ a_ g_ s ┆ 0x05c0…05e0 20 20 20 53 70 65 63 69 66 69 65 73 20 77 68 69 63 68 20 72 65 64 2c 20 67 72 65 65 6e 2c 20 61 ┆ Specifies which red, green, a┆ 0x05e0…0600 6e 64 20 62 6c 75 65 20 63 6f 6d 70 6f 6e 65 6e 74 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆nd blue components ┆ 0x0600…0620 20 20 61 72 65 20 73 65 74 2e 0a 0a 20 20 20 20 20 5f 08 6e 5f 08 63 5f 08 6f 5f 08 6c 5f 08 6f ┆ are set. _ n_ c_ o_ l_ o┆ 0x0620…0640 5f 08 72 5f 08 73 20 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 ┆_ r_ s Specifies the number of┆ 0x0640…0660 20 5f 08 58 5f 08 43 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 20 73 74 72 75 63 74 75 72 65 73 20 69 ┆ _ X_ C_ o_ l_ o_ r structures i┆ 0x0660…0680 6e 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6c 6f 72 20 64 65 66 69 6e ┆n the color defin┆ 0x0680…06a0 69 74 69 6f 6e 20 61 72 72 61 79 2e 0a 0a 20 20 20 20 20 5f 08 70 5f 08 69 5f 08 78 5f 08 65 5f ┆ition array. _ p_ i_ x_ e_┆ 0x06a0…06c0 08 6c 20 20 20 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 65 6e 74 72 79 20 69 6e 20 74 68 ┆ l Specifies the entry in th┆ 0x06c0…06e0 65 20 63 6f 6c 6f 72 6d 61 70 2e 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 ┆e colormap. D D D DE E E ES S S┆ 0x06e0…0700 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 ┆ SC C C CR R R RI I I IP P P PT ┆ 0x0700…0720 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 ┆T T TI I I IO O O ON N N N ┆ 0x0720…0740 54 68 65 20 5f 08 58 5f 08 53 5f 08 74 5f 08 6f 5f 08 72 5f 08 65 5f 08 43 5f 08 6f 5f 08 6c 5f ┆The _ X_ S_ t_ o_ r_ e_ C_ o_ l_┆ 0x0740…0760 08 6f 5f 08 72 5f 08 73 20 66 75 6e 63 74 69 6f 6e 20 63 68 61 6e 67 65 73 20 74 68 65 20 63 6f ┆ o_ r_ s function changes the co┆ 0x0760…0780 6c 6f 72 6d 61 70 20 65 6e 74 72 69 65 73 20 6f 66 0a 20 20 20 20 20 74 68 65 20 70 69 78 65 6c ┆lormap entries of the pixel┆ 0x0780…07a0 20 76 61 6c 75 65 73 20 73 70 65 63 69 66 69 65 64 20 69 6e 20 74 68 65 20 70 69 78 65 6c 20 6d ┆ values specified in the pixel m┆ 0x07a0…07c0 65 6d 62 65 72 73 20 6f 66 20 74 68 65 0a 20 20 20 20 20 5f 08 58 5f 08 43 5f 08 6f 5f 08 6c 5f ┆embers of the _ X_ C_ o_ l_┆ 0x07c0…07e0 08 6f 5f 08 72 20 73 74 72 75 63 74 75 72 65 73 2e 20 20 59 6f 75 20 73 70 65 63 69 66 79 20 77 ┆ o_ r structures. You specify w┆ 0x07e0…0800 68 69 63 68 20 63 6f 6c 6f 72 20 63 6f 6d 70 6f 6e 65 6e 74 73 20 61 72 65 0a 20 20 20 20 20 74 ┆hich color components are t┆ 0x0800…0820 6f 20 62 65 20 63 68 61 6e 67 65 64 20 62 79 20 73 65 74 74 69 6e 67 20 5f 08 44 5f 08 6f 5f 08 ┆o be changed by setting _ D_ o_ ┆ 0x0820…0840 52 5f 08 65 5f 08 64 2c 20 5f 08 44 5f 08 6f 5f 08 47 5f 08 72 5f 08 65 5f 08 65 5f 08 6e 2c 20 ┆R_ e_ d, _ D_ o_ G_ r_ e_ e_ n, ┆ 0x0840…0860 61 6e 64 2f 6f 72 20 5f 08 44 5f 08 6f 5f 08 42 5f 08 6c 5f 08 75 5f 08 65 20 69 6e 0a 20 20 20 ┆and/or _ D_ o_ B_ l_ u_ e in ┆ 0x0860…0880 20 20 74 68 65 20 66 6c 61 67 73 20 6d 65 6d 62 65 72 20 6f 66 20 74 68 65 20 5f 08 58 5f 08 43 ┆ the flags member of the _ X_ C┆ 0x0880…08a0 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 20 73 74 72 75 63 74 75 72 65 73 2e 20 20 49 66 20 74 68 65 ┆_ o_ l_ o_ r structures. If the┆ 0x08a0…08c0 20 63 6f 6c 6f 72 6d 61 70 0a 20 20 20 20 20 69 73 20 61 6e 20 69 6e 73 74 61 6c 6c 65 64 20 6d ┆ colormap is an installed m┆ 0x08c0…08e0 61 70 20 66 6f 72 20 69 74 73 20 73 63 72 65 65 6e 2c 20 74 68 65 20 63 68 61 6e 67 65 73 20 61 ┆ap for its screen, the changes a┆ 0x08e0…0900 72 65 20 76 69 73 69 62 6c 65 0a 20 20 20 20 20 69 6d 6d 65 64 69 61 74 65 6c 79 2e 20 20 5f 08 ┆re visible immediately. _ ┆ 0x0900…0920 58 5f 08 53 5f 08 74 5f 08 6f 5f 08 72 5f 08 65 5f 08 43 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 5f ┆X_ S_ t_ o_ r_ e_ C_ o_ l_ o_ r_┆ 0x0920…0940 08 73 20 63 68 61 6e 67 65 73 20 74 68 65 20 73 70 65 63 69 66 69 65 64 20 70 69 78 65 6c 73 20 ┆ s changes the specified pixels ┆ 0x0940…0960 69 66 0a 20 20 20 20 20 74 68 65 79 20 61 72 65 20 61 6c 6c 6f 63 61 74 65 64 20 77 72 69 74 61 ┆if they are allocated writa┆ 0x0960…0980 62 6c 65 20 69 6e 20 74 68 65 20 63 6f 6c 6f 72 6d 61 70 20 62 79 20 61 6e 79 20 63 6c 69 65 6e ┆ble in the colormap by any clien┆ 0x0980…09a0 74 2c 0a 20 20 20 20 20 65 76 65 6e 20 69 66 20 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 70 69 78 65 ┆t, even if one or more pixe┆ 0x09a0…09c0 6c 73 20 67 65 6e 65 72 61 74 65 73 20 61 6e 20 65 72 72 6f 72 2e 20 20 49 66 20 61 20 73 70 65 ┆ls generates an error. If a spe┆ 0x09c0…09e0 63 69 2d 0a 20 20 20 20 20 66 69 65 64 20 70 69 78 65 6c 20 69 73 20 6e 6f 74 20 61 20 76 61 6c ┆ci- fied pixel is not a val┆ 0x09e0…0a00 69 64 20 69 6e 64 65 78 20 69 6e 74 6f 20 74 68 65 20 63 6f 6c 6f 72 6d 61 70 2c 20 61 20 5f 08 ┆id index into the colormap, a _ ┆ 0x0a00…0a20 42 5f 08 61 5f 08 64 5f 08 2d 0a 20 20 20 20 20 5f 08 56 5f 08 61 5f 08 6c 5f 08 75 5f 08 65 20 ┆B_ a_ d_ - _ V_ a_ l_ u_ e ┆ 0x0a20…0a40 65 72 72 6f 72 20 72 65 73 75 6c 74 73 2e 20 20 49 66 20 61 20 73 70 65 63 69 66 69 65 64 20 70 ┆error results. If a specified p┆ 0x0a40…0a60 69 78 65 6c 20 65 69 74 68 65 72 20 69 73 20 75 6e 61 6c 6c 6f 2d 0a 20 20 20 20 20 63 61 74 65 ┆ixel either is unallo- cate┆ 0x0a60…0a80 64 20 6f 72 20 69 73 20 61 6c 6c 6f 63 61 74 65 64 20 72 65 61 64 2d 6f 6e 6c 79 2c 20 61 20 5f ┆d or is allocated read-only, a _┆ 0x0a80…0aa0 08 42 5f 08 61 5f 08 64 5f 08 41 5f 08 63 5f 08 63 5f 08 65 5f 08 73 5f 08 73 20 65 72 72 6f 72 ┆ B_ a_ d_ A_ c_ c_ e_ s_ s error┆ 0x0aa0…0ac0 20 72 65 73 75 6c 74 73 2e 0a 20 20 20 20 20 49 66 20 6d 6f 72 65 20 74 68 61 6e 20 6f 6e 65 20 ┆ results. If more than one ┆ 0x0ac0…0ae0 70 69 78 65 6c 20 69 73 20 69 6e 20 65 72 72 6f 72 2c 20 74 68 65 20 6f 6e 65 20 74 68 61 74 20 ┆pixel is in error, the one that ┆ 0x0ae0…0b00 67 65 74 73 0a 20 20 20 20 20 72 65 70 6f 72 74 65 64 20 69 73 20 61 72 62 69 74 72 61 72 79 2e ┆gets reported is arbitrary.┆ 0x0b00…0b20 0a 0a 20 20 20 20 20 5f 08 58 5f 08 53 5f 08 74 5f 08 6f 5f 08 72 5f 08 65 5f 08 43 5f 08 6f 5f ┆ _ X_ S_ t_ o_ r_ e_ C_ o_┆ 0x0b20…0b40 08 6c 5f 08 6f 5f 08 72 5f 08 73 20 63 61 6e 20 67 65 6e 65 72 61 74 65 20 5f 08 42 5f 08 61 5f ┆ l_ o_ r_ s can generate _ B_ a_┆ 0x0b40…0b60 08 64 5f 08 41 5f 08 63 5f 08 63 5f 08 65 5f 08 73 5f 08 73 2c 20 5f 08 42 5f 08 61 5f 08 64 5f ┆ d_ A_ c_ c_ e_ s_ s, _ B_ a_ d_┆ 0x0b60…0b80 08 43 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 2c 20 61 6e 64 20 5f 08 42 5f 08 61 5f 08 64 5f 08 56 ┆ C_ o_ l_ o_ r, and _ B_ a_ d_ V┆ 0x0b80…0ba0 5f 08 61 5f 08 6c 5f 08 75 5f 08 65 0a 20 20 20 20 20 65 72 72 6f 72 73 2e 0a 0a 0a 0a 0a 0a 0a ┆_ a_ l_ u_ e errors. ┆ 0x0ba0…0bc0 20 20 20 20 20 54 68 65 20 5f 08 58 5f 08 53 5f 08 74 5f 08 6f 5f 08 72 5f 08 65 5f 08 43 5f 08 ┆ The _ X_ S_ t_ o_ r_ e_ C_ ┆ 0x0bc0…0be0 6f 5f 08 6c 5f 08 6f 5f 08 72 20 66 75 6e 63 74 69 6f 6e 20 63 68 61 6e 67 65 73 20 74 68 65 20 ┆o_ l_ o_ r function changes the ┆ 0x0be0…0c00 63 6f 6c 6f 72 6d 61 70 20 65 6e 74 72 79 20 6f 66 20 74 68 65 0a 20 20 20 20 20 70 69 78 65 6c ┆colormap entry of the pixel┆ 0x0c00…0c20 20 76 61 6c 75 65 20 73 70 65 63 69 66 69 65 64 20 69 6e 20 74 68 65 20 70 69 78 65 6c 20 6d 65 ┆ value specified in the pixel me┆ 0x0c20…0c40 6d 62 65 72 20 6f 66 20 74 68 65 20 5f 08 58 5f 08 43 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 0a 20 ┆mber of the _ X_ C_ o_ l_ o_ r ┆ 0x0c40…0c60 20 20 20 20 73 74 72 75 63 74 75 72 65 2e 20 20 59 6f 75 20 73 70 65 63 69 66 69 65 64 20 74 68 ┆ structure. You specified th┆ 0x0c60…0c80 69 73 20 76 61 6c 75 65 20 69 6e 20 74 68 65 20 70 69 78 65 6c 20 6d 65 6d 62 65 72 20 6f 66 0a ┆is value in the pixel member of ┆ 0x0c80…0ca0 20 20 20 20 20 74 68 65 20 5f 08 58 5f 08 43 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 20 73 74 72 75 ┆ the _ X_ C_ o_ l_ o_ r stru┆ 0x0ca0…0cc0 63 74 75 72 65 2e 20 20 54 68 69 73 20 70 69 78 65 6c 20 76 61 6c 75 65 20 6d 75 73 74 20 62 65 ┆cture. This pixel value must be┆ 0x0cc0…0ce0 20 61 20 72 65 61 64 2f 77 72 69 74 65 0a 20 20 20 20 20 63 65 6c 6c 20 61 6e 64 20 61 20 76 61 ┆ a read/write cell and a va┆ 0x0ce0…0d00 6c 69 64 20 69 6e 64 65 78 20 69 6e 74 6f 20 74 68 65 20 63 6f 6c 6f 72 6d 61 70 2e 20 20 49 66 ┆lid index into the colormap. If┆ 0x0d00…0d20 20 61 20 73 70 65 63 69 66 69 65 64 0a 20 20 20 20 20 70 69 78 65 6c 20 69 73 20 6e 6f 74 20 61 ┆ a specified pixel is not a┆ 0x0d20…0d40 20 76 61 6c 69 64 20 69 6e 64 65 78 20 69 6e 74 6f 20 74 68 65 20 63 6f 6c 6f 72 6d 61 70 2c 20 ┆ valid index into the colormap, ┆ 0x0d40…0d60 61 20 5f 08 42 5f 08 61 5f 08 64 5f 08 56 5f 08 61 5f 08 6c 5f 08 75 5f 08 65 0a 20 20 20 20 20 ┆a _ B_ a_ d_ V_ a_ l_ u_ e ┆ 0x0d60…0d80 65 72 72 6f 72 20 72 65 73 75 6c 74 73 2e 20 20 5f 08 58 5f 08 53 5f 08 74 5f 08 6f 5f 08 72 5f ┆error results. _ X_ S_ t_ o_ r_┆ 0x0d80…0da0 08 65 5f 08 43 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 20 61 6c 73 6f 20 63 68 61 6e 67 65 73 20 74 ┆ e_ C_ o_ l_ o_ r also changes t┆ 0x0da0…0dc0 68 65 20 72 65 64 2c 20 67 72 65 65 6e 2c 0a 20 20 20 20 20 61 6e 64 2f 6f 72 20 62 6c 75 65 20 ┆he red, green, and/or blue ┆ 0x0dc0…0de0 63 6f 6c 6f 72 20 63 6f 6d 70 6f 6e 65 6e 74 73 2e 20 20 59 6f 75 20 73 70 65 63 69 66 79 20 77 ┆color components. You specify w┆ 0x0de0…0e00 68 69 63 68 20 63 6f 6c 6f 72 20 63 6f 6d 2d 0a 20 20 20 20 20 70 6f 6e 65 6e 74 73 20 61 72 65 ┆hich color com- ponents are┆ 0x0e00…0e20 20 74 6f 20 62 65 20 63 68 61 6e 67 65 64 20 62 79 20 73 65 74 74 69 6e 67 20 5f 08 44 5f 08 6f ┆ to be changed by setting _ D_ o┆ 0x0e20…0e40 5f 08 52 5f 08 65 5f 08 64 2c 20 5f 08 44 5f 08 6f 5f 08 47 5f 08 72 5f 08 65 5f 08 65 5f 08 6e ┆_ R_ e_ d, _ D_ o_ G_ r_ e_ e_ n┆ 0x0e40…0e60 2c 20 61 6e 64 2f 6f 72 0a 20 20 20 20 20 5f 08 44 5f 08 6f 5f 08 42 5f 08 6c 5f 08 75 5f 08 65 ┆, and/or _ D_ o_ B_ l_ u_ e┆ 0x0e60…0e80 20 69 6e 20 74 68 65 20 66 6c 61 67 73 20 6d 65 6d 62 65 72 20 6f 66 20 74 68 65 20 5f 08 58 5f ┆ in the flags member of the _ X_┆ 0x0e80…0ea0 08 43 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 20 73 74 72 75 63 74 75 72 65 2e 20 20 49 66 20 74 68 ┆ C_ o_ l_ o_ r structure. If th┆ 0x0ea0…0ec0 65 0a 20 20 20 20 20 63 6f 6c 6f 72 6d 61 70 20 69 73 20 61 6e 20 69 6e 73 74 61 6c 6c 65 64 20 ┆e colormap is an installed ┆ 0x0ec0…0ee0 6d 61 70 20 66 6f 72 20 69 74 73 20 73 63 72 65 65 6e 2c 20 74 68 65 20 63 68 61 6e 67 65 73 20 ┆map for its screen, the changes ┆ 0x0ee0…0f00 61 72 65 0a 20 20 20 20 20 76 69 73 69 62 6c 65 20 69 6d 6d 65 64 69 61 74 65 6c 79 2e 0a 0a 20 ┆are visible immediately. ┆ 0x0f00…0f20 20 20 20 20 5f 08 58 5f 08 53 5f 08 74 5f 08 6f 5f 08 72 5f 08 65 5f 08 43 5f 08 6f 5f 08 6c 5f ┆ _ X_ S_ t_ o_ r_ e_ C_ o_ l_┆ 0x0f20…0f40 08 6f 5f 08 72 20 63 61 6e 20 67 65 6e 65 72 61 74 65 20 5f 08 42 5f 08 61 5f 08 64 5f 08 41 5f ┆ o_ r can generate _ B_ a_ d_ A_┆ 0x0f40…0f60 08 63 5f 08 63 5f 08 65 5f 08 73 5f 08 73 2c 20 5f 08 42 5f 08 61 5f 08 64 5f 08 43 5f 08 6f 5f ┆ c_ c_ e_ s_ s, _ B_ a_ d_ C_ o_┆ 0x0f60…0f80 08 6c 5f 08 6f 5f 08 72 2c 20 61 6e 64 20 5f 08 42 5f 08 61 5f 08 64 5f 08 56 5f 08 61 5f 08 6c ┆ l_ o_ r, and _ B_ a_ d_ V_ a_ l┆ 0x0f80…0fa0 5f 08 75 5f 08 65 0a 20 20 20 20 20 65 72 72 6f 72 73 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 ┆_ u_ e errors. The _ ┆ 0x0fa0…0fc0 58 5f 08 53 5f 08 74 5f 08 6f 5f 08 72 5f 08 65 5f 08 4e 5f 08 61 5f 08 6d 5f 08 65 5f 08 64 5f ┆X_ S_ t_ o_ r_ e_ N_ a_ m_ e_ d_┆ 0x0fc0…0fe0 08 43 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 20 66 75 6e 63 74 69 6f 6e 20 6c 6f 6f 6b 73 20 75 70 ┆ C_ o_ l_ o_ r function looks up┆ 0x0fe0…1000 20 74 68 65 20 6e 61 6d 65 64 20 63 6f 6c 6f 72 20 77 69 74 68 0a 20 20 20 20 20 72 65 73 70 65 ┆ the named color with respe┆ 0x1000…1020 63 74 20 74 6f 20 74 68 65 20 73 63 72 65 65 6e 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 ┆ct to the screen associated with┆ 0x1020…1040 20 74 68 65 20 63 6f 6c 6f 72 6d 61 70 20 61 6e 64 0a 20 20 20 20 20 73 74 6f 72 65 73 20 74 68 ┆ the colormap and stores th┆ 0x1040…1060 65 20 72 65 73 75 6c 74 20 69 6e 20 74 68 65 20 73 70 65 63 69 66 69 65 64 20 63 6f 6c 6f 72 6d ┆e result in the specified colorm┆ 0x1060…1080 61 70 2e 20 20 54 68 65 20 70 69 78 65 6c 0a 20 20 20 20 20 61 72 67 75 6d 65 6e 74 20 64 65 74 ┆ap. The pixel argument det┆ 0x1080…10a0 65 72 6d 69 6e 65 73 20 74 68 65 20 65 6e 74 72 79 20 69 6e 20 74 68 65 20 63 6f 6c 6f 72 6d 61 ┆ermines the entry in the colorma┆ 0x10a0…10c0 70 2e 20 20 54 68 65 20 66 6c 61 67 73 0a 20 20 20 20 20 61 72 67 75 6d 65 6e 74 20 64 65 74 65 ┆p. The flags argument dete┆ 0x10c0…10e0 72 6d 69 6e 65 73 20 77 68 69 63 68 20 6f 66 20 74 68 65 20 72 65 64 2c 20 67 72 65 65 6e 2c 20 ┆rmines which of the red, green, ┆ 0x10e0…1100 61 6e 64 20 62 6c 75 65 20 63 6f 6d 2d 0a 20 20 20 20 20 70 6f 6e 65 6e 74 73 20 61 72 65 20 73 ┆and blue com- ponents are s┆ 0x1100…1120 65 74 2e 20 59 6f 75 20 63 61 6e 20 73 65 74 20 74 68 69 73 20 6d 65 6d 62 65 72 20 74 6f 20 74 ┆et. You can set this member to t┆ 0x1120…1140 68 65 20 62 69 74 77 69 73 65 0a 20 20 20 20 20 69 6e 63 6c 75 73 69 76 65 20 4f 52 20 6f 66 20 ┆he bitwise inclusive OR of ┆ 0x1140…1160 74 68 65 20 62 69 74 73 20 5f 08 44 5f 08 6f 5f 08 52 5f 08 65 5f 08 64 2c 20 5f 08 44 5f 08 6f ┆the bits _ D_ o_ R_ e_ d, _ D_ o┆ 0x1160…1180 5f 08 47 5f 08 72 5f 08 65 5f 08 65 5f 08 6e 2c 20 61 6e 64 20 5f 08 44 5f 08 6f 5f 08 42 5f 08 ┆_ G_ r_ e_ e_ n, and _ D_ o_ B_ ┆ 0x1180…11a0 6c 5f 08 75 5f 08 65 2e 20 20 49 66 20 74 68 65 0a 20 20 20 20 20 73 70 65 63 69 66 69 65 64 20 ┆l_ u_ e. If the specified ┆ 0x11a0…11c0 70 69 78 65 6c 20 69 73 20 6e 6f 74 20 61 20 76 61 6c 69 64 20 69 6e 64 65 78 20 69 6e 74 6f 20 ┆pixel is not a valid index into ┆ 0x11c0…11e0 74 68 65 20 63 6f 6c 6f 72 6d 61 70 2c 20 61 0a 20 20 20 20 20 5f 08 42 5f 08 61 5f 08 64 5f 08 ┆the colormap, a _ B_ a_ d_ ┆ 0x11e0…1200 56 5f 08 61 5f 08 6c 5f 08 75 5f 08 65 20 65 72 72 6f 72 20 72 65 73 75 6c 74 73 2e 20 20 49 66 ┆V_ a_ l_ u_ e error results. If┆ 0x1200…1220 20 74 68 65 20 73 70 65 63 69 66 69 65 64 20 70 69 78 65 6c 20 65 69 74 68 65 72 20 69 73 0a 20 ┆ the specified pixel either is ┆ 0x1220…1240 20 20 20 20 75 6e 61 6c 6c 6f 63 61 74 65 64 20 6f 72 20 69 73 20 61 6c 6c 6f 63 61 74 65 64 20 ┆ unallocated or is allocated ┆ 0x1240…1260 72 65 61 64 2d 6f 6e 6c 79 2c 20 61 20 5f 08 42 5f 08 61 5f 08 64 5f 08 41 5f 08 63 5f 08 63 5f ┆read-only, a _ B_ a_ d_ A_ c_ c_┆ 0x1260…1280 08 65 5f 08 73 5f 08 73 20 65 72 72 6f 72 0a 20 20 20 20 20 72 65 73 75 6c 74 73 2e 20 20 59 6f ┆ e_ s_ s error results. Yo┆ 0x1280…12a0 75 20 73 68 6f 75 6c 64 20 75 73 65 20 74 68 65 20 49 53 4f 20 4c 61 74 69 6e 2d 31 20 65 6e 63 ┆u should use the ISO Latin-1 enc┆ 0x12a0…12c0 6f 64 69 6e 67 3b 20 75 70 70 65 72 63 61 73 65 0a 20 20 20 20 20 61 6e 64 20 6c 6f 77 65 72 63 ┆oding; uppercase and lowerc┆ 0x12c0…12e0 61 73 65 20 64 6f 20 6e 6f 74 20 6d 61 74 74 65 72 2e 0a 0a 20 20 20 20 20 5f 08 58 5f 08 53 5f ┆ase do not matter. _ X_ S_┆ 0x12e0…1300 08 74 5f 08 6f 5f 08 72 5f 08 65 5f 08 4e 5f 08 61 5f 08 6d 5f 08 65 5f 08 64 5f 08 43 5f 08 6f ┆ t_ o_ r_ e_ N_ a_ m_ e_ d_ C_ o┆ 0x1300…1320 5f 08 6c 5f 08 6f 5f 08 72 20 63 61 6e 20 67 65 6e 65 72 61 74 65 20 5f 08 42 5f 08 61 5f 08 64 ┆_ l_ o_ r can generate _ B_ a_ d┆ 0x1320…1340 5f 08 41 5f 08 63 5f 08 63 5f 08 65 5f 08 73 5f 08 73 2c 20 5f 08 42 5f 08 61 5f 08 64 5f 08 43 ┆_ A_ c_ c_ e_ s_ s, _ B_ a_ d_ C┆ 0x1340…1360 5f 08 6f 5f 08 6c 5f 08 6f 5f 08 72 2c 20 5f 08 42 5f 08 61 5f 08 64 5f 08 4e 5f 08 61 5f 08 6d ┆_ o_ l_ o_ r, _ B_ a_ d_ N_ a_ m┆ 0x1360…1380 5f 08 65 2c 0a 20 20 20 20 20 61 6e 64 20 5f 08 42 5f 08 61 5f 08 64 5f 08 56 5f 08 61 5f 08 6c ┆_ e, and _ B_ a_ d_ V_ a_ l┆ 0x1380…13a0 5f 08 75 5f 08 65 20 65 72 72 6f 72 73 2e 0a 0a 44 08 44 08 44 08 44 49 08 49 08 49 08 49 41 08 ┆_ u_ e errors. D D D DI I I IA ┆ 0x13a0…13c0 41 08 41 08 41 47 08 47 08 47 08 47 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 53 08 53 08 53 08 ┆A A AG G G GN N N NO O O OS S S ┆ 0x13c0…13e0 53 54 08 54 08 54 08 54 49 08 49 08 49 08 49 43 08 43 08 43 08 43 53 08 53 08 53 08 53 0a 20 20 ┆ST T T TI I I IC C C CS S S S ┆ 0x13e0…1400 20 20 20 5f 08 42 5f 08 61 5f 08 64 5f 08 41 5f 08 63 5f 08 63 5f 08 65 5f 08 73 5f 08 73 20 41 ┆ _ B_ a_ d_ A_ c_ c_ e_ s_ s A┆ 0x1400…1420 20 63 6c 69 65 6e 74 20 61 74 74 65 6d 70 74 65 64 20 74 6f 20 66 72 65 65 20 61 20 63 6f 6c 6f ┆ client attempted to free a colo┆ 0x1420…1440 72 20 6d 61 70 20 65 6e 74 72 79 20 74 68 61 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆r map entry that ┆ 0x1440…1460 69 74 20 64 69 64 20 6e 6f 74 20 61 6c 72 65 61 64 79 20 61 6c 6c 6f 63 61 74 65 2e 0a 0a 20 20 ┆it did not already allocate. ┆ 0x1460…1480 20 20 20 5f 08 42 5f 08 61 5f 08 64 5f 08 41 5f 08 63 5f 08 63 5f 08 65 5f 08 73 5f 08 73 20 41 ┆ _ B_ a_ d_ A_ c_ c_ e_ s_ s A┆ 0x1480…14a0 20 63 6c 69 65 6e 74 20 61 74 74 65 6d 70 74 65 64 20 74 6f 20 73 74 6f 72 65 20 69 6e 74 6f 20 ┆ client attempted to store into ┆ 0x14a0…14c0 61 20 72 65 61 64 2d 6f 6e 6c 79 20 63 6f 6c 6f 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆a read-only color ┆ 0x14c0…14e0 20 6d 61 70 20 65 6e 74 72 79 2e 0a 0a 20 20 20 20 20 5f 08 42 5f 08 61 5f 08 64 5f 08 43 5f 08 ┆ map entry. _ B_ a_ d_ C_ ┆ 0x14e0…1500 6f 5f 08 6c 5f 08 6f 5f 08 72 20 20 41 20 76 61 6c 75 65 20 66 6f 72 20 61 20 43 6f 6c 6f 72 6d ┆o_ l_ o_ r A value for a Colorm┆ 0x1500…1520 61 70 20 61 72 67 75 6d 65 6e 74 20 64 6f 65 73 20 6e 6f 74 20 6e 61 6d 65 20 61 0a 20 20 20 20 ┆ap argument does not name a ┆ 0x1520…1540 20 20 20 20 20 20 20 20 20 20 20 64 65 66 69 6e 65 64 20 43 6f 6c 6f 72 6d 61 70 2e 0a 0a 20 20 ┆ defined Colormap. ┆ 0x1540…1560 20 20 20 5f 08 42 5f 08 61 5f 08 64 5f 08 4e 5f 08 61 5f 08 6d 5f 08 65 20 20 20 41 20 66 6f 6e ┆ _ B_ a_ d_ N_ a_ m_ e A fon┆ 0x1560…1580 74 20 6f 72 20 63 6f 6c 6f 72 20 6f 66 20 74 68 65 20 73 70 65 63 69 66 69 65 64 20 6e 61 6d 65 ┆t or color of the specified name┆ 0x1580…15a0 20 64 6f 65 73 20 6e 6f 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 78 69 73 74 2e 0a ┆ does not exist. ┆ 0x15a0…15c0 0a 20 20 20 20 20 5f 08 42 5f 08 61 5f 08 64 5f 08 56 5f 08 61 5f 08 6c 5f 08 75 5f 08 65 20 20 ┆ _ B_ a_ d_ V_ a_ l_ u_ e ┆ 0x15c0…15e0 53 6f 6d 65 20 6e 75 6d 65 72 69 63 20 76 61 6c 75 65 20 66 61 6c 6c 73 20 6f 75 74 73 69 64 65 ┆Some numeric value falls outside┆ 0x15e0…1600 20 74 68 65 20 72 61 6e 67 65 20 6f 66 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c ┆ the range of val┆ 0x1600…1620 75 65 73 20 61 63 63 65 70 74 65 64 20 62 79 20 74 68 65 20 72 65 71 75 65 73 74 2e 20 20 55 6e ┆ues accepted by the request. Un┆ 0x1620…1640 6c 65 73 73 20 61 20 73 70 65 63 69 66 69 63 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 ┆less a specific r┆ 0x1640…1660 61 6e 67 65 20 69 73 20 73 70 65 63 69 66 69 65 64 20 66 6f 72 20 61 6e 20 61 72 67 75 6d 65 6e ┆ange is specified for an argumen┆ 0x1660…1680 74 2c 20 74 68 65 20 66 75 6c 6c 20 72 61 6e 67 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆t, the full range ┆ 0x1680…16a0 20 64 65 66 69 6e 65 64 20 62 79 20 74 68 65 20 61 72 67 75 6d 65 6e 74 27 73 20 74 79 70 65 20 ┆ defined by the argument's type ┆ 0x16a0…16c0 69 73 20 61 63 63 65 70 74 65 64 2e 20 20 41 6e 79 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆is accepted. Any ┆ 0x16c0…16e0 20 61 72 67 75 6d 65 6e 74 20 64 65 66 69 6e 65 64 20 61 73 20 61 20 73 65 74 20 6f 66 20 61 6c ┆ argument defined as a set of al┆ 0x16e0…1700 74 65 72 6e 61 74 69 76 65 73 20 63 61 6e 20 67 65 6e 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ┆ternatives can gen- ┆ 0x1700…1720 20 20 20 65 72 61 74 65 20 74 68 69 73 20 65 72 72 6f 72 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 ┆ erate this error. S S S SE E┆ 0x1720…1740 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 ┆ E EE E E E A A A AL L L LS S S ┆ 0x1740…1760 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 58 41 6c 6c 6f 63 43 6f 6c 6f 72 28 33 58 31 31 29 2c ┆SO O O O XAllocColor(3X11),┆ 0x1760…1780 20 58 43 72 65 61 74 65 43 6f 6c 6f 72 6d 61 70 28 33 58 31 31 29 2c 20 58 51 75 65 72 79 43 6f ┆ XCreateColormap(3X11), XQueryCo┆ 0x1780…17a0 6c 6f 72 28 33 58 31 31 29 0a 20 20 20 20 20 5f 08 58 5f 08 6c 5f 08 69 5f 08 62 20 2d 20 5f 08 ┆lor(3X11) _ X_ l_ i_ b - _ ┆ 0x17a0…17c0 43 20 5f 08 4c 5f 08 61 5f 08 6e 5f 08 67 5f 08 75 5f 08 61 5f 08 67 5f 08 65 20 5f 08 58 20 5f ┆C _ L_ a_ n_ g_ u_ a_ g_ e _ X _┆ 0x17c0…17e0 08 49 5f 08 6e 5f 08 74 5f 08 65 5f 08 72 5f 08 66 5f 08 61 5f 08 63 5f 08 65 0a 0a 41 75 67 75 ┆ I_ n_ t_ e_ r_ f_ a_ c_ e Augu┆ 0x17e0…1800 73 74 20 31 39 39 31 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆st 1991 ┆ 0x1800…1820 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a ┆ TX Programmer's Reference ┆ 0x1820…1821 0a ┆ ┆