DXmColorMixGetNewColor(3X)DXmColorMixGetNewColor(3X)NAME
DXmColorMixGetNewColor - Retrieves (returns) the color mixing widget's current new color red, green, and blue values.
SYNOPSIS
void DXmColorMixGetNewColor(
DXmColorMixWidget cmw,
unsigned short *red,
unsigned short *green,
unsigned short *blue );
PARAMETERS
The widget identifier of the color mixing widget. A pointer to the returned new color red value. A pointer to the returned new color
green value. A pointer to the returned new color blue value.
A complete list of all the X color values available to you is located on your system. To find it, type the following command: % find /
-name '*rgb*' -print
DESCRIPTION
DXmColorMixGetNewColor allows the calling application or routine to quickly obtain the current color value from the color mixing widget.
Note that if your application uses the default color mixing subwidget, the application will perform this operation faster if you call this
routine instead of the Intrinsic routine XtGetValues.
SEE ALSO DXmColorMixSetNewColor(3X), DXmCreateColorMix(3X), DXmCreateColorMixDialog(3X)DXmColorMixGetNewColor(3X)
Check Out this Related Man Page
DXmColorMixSetNewColor(3X)DXmColorMixSetNewColor(3X)NAME
DXmColorMixSetNewColor - Sets the new color red, green, and blue values in the color mixing widget.
SYNOPSIS
void DXmColorMixSetNewColor(
DXmColorMixWidget cmw,
unsigned short red,
unsigned short green,
unsigned short blue );
PARAMETERS
The identifier (widget ID) of the color mixing widget. The new color red value. The value is expressed as an X color value (0 to 65535).
The new color green value. The value is expressed as an X color value (0 to 65535). The new color blue value. The value is expressed as an
X color value (0 to 65535).
A complete list of all the X color values available to you is located on your system. To find it, type the following command: % find /
-name '*rgb*' -print
DESCRIPTION
The DXmColorMixSetNewColor routine allows the application or a user-supplied color mixer subwidget to pass the current color value to the
color mixing widget. Note that your application will perform this operation faster if you call this routine instead of the Intrinsic rou-
tine XtSetValues.
SEE ALSO DXmColorMixGetNewColor(3X), DXmCreateColorMix(3X), DXmCreateColorMixDialog(3X)DXmColorMixSetNewColor(3X)
I need to change color of text in shell. I do it like that
#setterm -foreground green -store
but when I reboot computer color changes to default, how to make it autochange color (3 Replies)
I have a short code below:
awk 'NR==1 {printf "'$information'-MYDATA-'$information' \n"} {print $0}' data.file > newdata.file
I want the "information" color in RED and MYDATA in BLUE. How can I do it?
Please help!!!! (3 Replies)
Can anyone help me on this. I have a file that looks like this:
color red green blue
color pink yellow
number one two
gender male
gender female
The output would look like this:
color red green blue pink yellow
number one two
gender male female
I have over 5000 rows and i dont want... (5 Replies)
Hi all,
i would to find out how can i turn on color hightlighting with the 'more' command.
When i view a big file, i tend to use the 'more' command and i would search for a interested string with the '/' command. Something the search returns more than 1 line found on the screen, how can i... (0 Replies)
hello
im looking for an easy way to color specific strings in text file.
simple example:
cat file1
acb 1234
qwer 5678
my goal:
cat file1 (color the acb red and the 5678 blue)
acb 1234
qwer 5678
cheers (2 Replies)
Good morning,
Can someone help to color a figure in columns if its exceeding a threshold using shell script .
ex. I have file contains 5 columns showing a value in % I need to show the value in red if it exceed 90 %
Appreciate your help (3 Replies)
Hi all
I have a file contains columns showing figures as below :
Input file
A B C
D 50 60 90
E 100 20 53
F 30 40 70
G 25 27 45
I want to color the value above or equal 90 by red and to be shown as below
output file... (5 Replies)
Hi Team
when i do, echo on my host box it returns (see below)
# echo $PS1
\$
I need to set a color comination of my own
for \u means for user : red
for \h means for hostname: blue
for \W means present working directory: pink
for $ means for wht prompt : yellow
Do i need to... (1 Reply)
OK, let's say if we want to filter lines in man and get a different color for the word we are searching we write man find | grep print
It will mark all the words containing print red and output only those lines containing it, let's say I want to see the complete manual, but with marked words... (1 Reply)
Hi Friends ,
I want to know how to format the output for the following:
i searched in the forum and couldnt get the exact requirement.
Thanks in advance . (2 Replies)
p1=text1
p2=text2(in red color)
when i am trying to replace $p1 with $p2, content of the file from text2 become red. so when i open that file using vi its showing color code before tex2.
please suggest me how to omit that color code and make content of that file in default color? (1 Reply)