DwtColorMixSetNewColor(3Dwt)DwtColorMixSetNewColor(3Dwt)Name
DwtColorMixSetNewColor - Sets the new red, green, and blue color values in the color mixing widget.
Syntax
void DwtColorMixSetNewColor(cmw, red, green, blue)
Widget cmw;
unsigned short red;
unsigned short green;
unsigned short blue;
Arguments
cmw Specifies the widget ID of the color mixing widget.
red Specifies the new color red value. You can express the value in percentages or by the X color values (0 to 65535).
green Specifies the new color green value. You can express the value in percentages or by the X color values (0 to 65535).
blue Specifies the new color blue value. You can express the value in percentages or by the X color values (0 to 65535).
See the section on colormap functions in the Guide to the Xlib Library: C Language Binding for more information on X color val-
ues.
Description
The DwtColorMixSetNewColor function allows the user-supplied color mixer subwidget to pass the current color values to the color mixing
widget. Using DwtColorMixSetNewColor is more efficient than using XtSetValues.
See AlsoDwtColorMixGetNewColor(3Dwt), DwtColorMixCreate(3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtColorMixSetNewColor(3Dwt)
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)
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)
Hi all
I am trying to scan a file that has 3 columns:
red blue 123351
red blue 848655
red blue 126354
red blue 023158
black white 654896
red blue 650884
I want an output that sums the rows that have matching columns 1 and 2 :wall:
red blue has 5 entries
black white has 1 entry
... (4 Replies)
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)
Hi
i have below code which i am running and the out i want should be in red color
echo "<html>" >> ERROR_FILE.html
echo "<Body>" >> ERROR_FILE.html
nawk 'BEGIN{print "<table border="1">"}
{print "<tr>";
print "<TD colspan="0" bgcolor="#DC143C">";
for(i=1;i<NF;i++)... (5 Replies)