Unix and Linux Discussions Tagged with color |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
6,331 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
8,987 |
What is on Your Mind? |
|
|
|
4 |
10,210 |
Shell Programming and Scripting |
|
|
|
18 |
16,816 |
Ubuntu |
|
|
|
17 |
4,935 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
7,279 |
Web Development |
|
|
|
7 |
2,561 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
4,559 |
Shell Programming and Scripting |
|
|
|
15 |
4,721 |
Shell Programming and Scripting |
|
|
|
1 |
2,447 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,794 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,722 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
17,708 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
13,124 |
AIX |
|
|
|
0 |
1,534 |
UNIX and Linux RSS News |
|
|
|
0 |
2,062 |
OS X Support RSS |
|
|
|
1 |
4,328 |
Solaris |
|
|
|
1 |
10,930 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
11,859 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,689 |
UNIX and Linux RSS News |
|
|
|
0 |
1,342 |
UNIX and Linux RSS News |
|
|
|
0 |
1,350 |
UNIX and Linux RSS News |
|
|
|
2 |
7,415 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,756 |
UNIX and Linux RSS News |
|
|
|
1 |
9,213 |
AIX |
|
|
|
16 |
10,044 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
40,499 |
Shell Programming and Scripting |
|
|
|
0 |
4,784 |
Shell Programming and Scripting |
|
|
|
1 |
9,002 |
Programming |
|
|
|
4 |
86,664 |
Shell Programming and Scripting |
|
|
|
0 |
1,146 |
Software Releases - RSS News |
|
|
|
1 |
11,096 |
OS X (Apple) |
|
|
|
0 |
7,665 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,151 |
Shell Programming and Scripting |
|
|
|
1 |
4,093 |
UNIX Desktop Questions & Answers |
|
|
|
1 |
2,433 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,921 |
Programming |
|
|
|
2 |
13,496 |
Shell Programming and Scripting |
|
|
|
2 |
3,493 |
UNIX for Dummies Questions & Answers |
|
|
|
16 |
16,363 |
Programming |
NCURSES_INIT_COLOR(3) 1 NCURSES_INIT_COLOR(3)
ncurses_init_color - Define a terminal color
SYNOPSIS
int ncurses_init_color (int $color, int $r, int $g, int $b)
DESCRIPTION
Defines or redefines the given color. When this function is called, all occurrences of the given color on the screen, if any, immediately
change to the new definition.
Color capabilities must be supported by the terminal and initialized using ncurses_start_color(3) prior to calling this function. In addi-
tion, the terminal must have color changing capabilities; use ncurses_can_change_color(3) to check for this.
PARAMETERS
o $color
- The identification number of the color to redefine. It may be one of the default color constants.
o $r
- A color value, between 0 and 1000, for the red component.
o $g
- A color value, between 0 and 1000, for the green component.
o $b
- A color value, between 0 and 1000, for the blue component.
RETURN VALUES
Returns -1 if the function was successful, and 0 if ncurses or terminal color capabilities have not been initialized or the terminal does
not have color changing capabilities.
SEE ALSO
ncurses_color_content(3), ncurses_start_color(3).
PHP Documentation Group NCURSES_INIT_COLOR(3)