GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
curs_color(3) FreeBSD Library Functions Manual curs_color(3)

start_color, init_pair, init_color, has_colors, can_change_color, color_content, pair_content - ncurses ???顼?????롼????

# include <ncurses.h>
int start_color(void);
int init_pair(short pair, short f, short b);
int init_color(short color, short r, short g, short b);
bool has_colors(void);
bool can_change_color(void);
int color_content(short color, short *r, short *g, short *b);
int pair_content(short pair, short *f, short *b);

ncurses ?ϡ???ǽ?Τ???ü???ǥ??顼°???򥵥ݡ??Ȥ??ޤ??? ???????Υ롼?????????Ѥ????ˤϡ??̾initscr ??ľ???? start_color ???ƤӽФ?ɬ?פ??????ޤ??? ????ɬ???ڥ??ǻ??Ѥ????ޤ? (???Υڥ??ȸƤФ??ޤ?)?? ???Υڥ??ϡ?(ʸ???Ѥ?) ???ʿ??? (ʸ????ɽ?????????֥??󥯤Υե??륿?Ѥ?) ?طʿ??ǹ????????ޤ??? ?ץ??????ޤϡ??롼???? init_pair ?ǿ??Υڥ????????????ޤ??? ?????????Ѥ??????ϡ?<ncurses.h> ?????????????Ƥ????ޥ????Ǥ??? COLOR_PAIR(n) ?򡢿??????ӥǥ?°???Ȥ??ƻ??ѤǤ??ޤ???

ü???????????????Ǥ????????ϡ??ץ??????ޤϡ? ?롼???? init_color ?????Ѥ??ơ????????????ѹ??Ǥ??ޤ??? ?롼???? has_colors ?ȥ롼???? can_change_color ?ϡ? ü???˿??ε?ǽ?????뤫?ɤ????? ?ץ??????ޤ??????ѹ??Ǥ??뤫?ɤ????˽??äơ? TRUE ?ޤ??? FALSE ???֤??ޤ??? ?롼???? color_content ?ˤ??äơ? ?ץ??????ޤϽ????????줿?????֡??С??ĤΥ????ݡ??ͥ??Ȥ??????Ф??ޤ??? ?롼???? pair_content ?ˤ??äơ??ץ??????ޤϡ? ?????ο??Υڥ??????????ǤɤΤ褦???????????Ƥ??뤫?򸫤Ĥ??????ޤ???

start_color ?롼?????ˤϰ?????ɬ?פ????ޤ????? ?ץ??????ޤ????????Ѥ????????ϡ? ¾?ο??????롼???󤬸ƤӽФ????ˤ??????ƤӽФ?ɬ?פ??????ޤ??? initscr ?Τ??????Ǥ??Υ롼???????ƤӽФ??Τϸ???????ˡ?Ǥ??? start_color ?? 8 ?Ĥδ??ܿ? (?????֡??С????????ġ??ֻ硢?忧????) ?? 2 ?ĤΥ??????Х??ѿ? COLORS ?? COLOR_PAIRS ???????????ޤ? (???줾??ü???????ݡ??ȤǤ??뿧?????ӿ??Υڥ??κ??????????????ޤ?)?? ?ޤ???ü???򥪥????ڤ??ؤ????Ȥ??ο??ˡ?ü?????ο??????????ޤ???

init_pair ?롼?????ϡ????Υڥ??????????ѹ????ޤ??? ???? 3 ?Ĥΰ??????????ޤ??? ?ѹ????뿧?Υڥ????ֹ桢???ʿ????ֹ桢???????طʿ????ֹ??Ǥ??? ?ǽ??ΰ??????ͤ? 1 ?? COLOR_PAIRS-1 ?δ֤Ǥ???ɬ?פ??????ޤ??? 2 ?֤??ΰ??????ͤ? 3 ?֤??ΰ??????ͤ? 0 ?? COLORS ?δ֤ˤ???ɬ?פ??????ޤ? (0 ???Υڥ??Ϲ??ξ??????˷??ӤĤ??????Ƥ????Τǡ??ѹ??Ǥ??ޤ???)?? ???Υڥ????????˽??????????Ƥ??????硢???̤ϥ??ե??å??夵?졢 ???ο??Υڥ???ȯ???????Ȥ????Ϥ??٤ƿ????????????ѹ??????ޤ???

init_color ?롼?????Ͽ??????????ѹ????ޤ??? ???? 4 ?Ĥΰ??????????ޤ??? ?ѹ????뿧???ֹ??θ??? 3 ?Ĥ? RGB ?ͤ?³???????ΤǤ? (?֡??С??Ĥγƥ????ݡ??ͥ??Ȥ??̤ˤĤ??ƤǤ?)?? ?ǽ??ΰ??????ͤϡ?0 ?? COLORS ?δ֤Ǥ???ɬ?פ??????ޤ? (?ǥե????ȤΥ??顼?????ǥå????ˤĤ??Ƥϡ? Colors ?Υ??????????򻲾Ȥ??Ƥ???????)?? ?Ǹ??? 3 ?Ĥΰ????Ϥ??줾?? 0 ?? 1000 ???ͤδ֤ˤ???ɬ?פ??????ޤ??? init_color ?????Ѥ????Ȥ??? ???̾??ˤ??ο???ȯ???????Ȥ????Ϥ??٤Ƥ??????˿????????????Ѳ????ޤ???

has_colors ?롼?????ˤϰ?????ɬ?פ????ޤ????? ü?????????????Ǥ????????? TRUE ???֤??ޤ??? ?????Ǥʤ??????ϡ?FALSE ???֤??ޤ??? ???Υ롼?????ϡ?ü??????Ω?ʥץ??????????????????Τ???ñ?ˤ??ޤ??? ???Ȥ??С??ץ??????ޤϡ??????????Ѥ??ơ? ???ޤ???¾?Υӥǥ?°???????Ѥ??뤫?ɤ????????Ǥ??ޤ???

can_change_color ?롼?????ˤϰ?????ɬ?פ????ޤ????? ü???????򥵥ݡ??Ȥ??????????????ѹ??Ǥ????????? TRUE ???֤??ޤ??? ?????Ǥʤ????硢FALSE ???֤??ޤ??? ???Υ롼??????ü??????Ω?ʥץ??????????????????Τ???ñ?ˤ??ޤ???

color_content ?롼?????ϡ??????????֡??С??? (RGB) ?????ݡ??ͥ??Ȥζ??٤򸫤Ĥ?????ˡ???ץ??????ޤ?Ϳ???ޤ??? ???? 4 ?Ĥΰ?????ɬ?פǤ??? ?????ֹ桢?????ӻ????ο????????֡??С??ĤΥ????ݡ??ͥ??Ȥ? ?ؤ???????????¸???? short ?? 3 ?ĤΥ??ɥ쥹?Ǥ??? ?ǽ??ΰ??????ͤ? 0 ?? COLORS ?δ֤Ǥ??? ?Ǹ??? 3 ?Ĥΰ??????ؤ????ɥ쥹????¸???????ͤ? 0 (?????ݡ??ͥ??Ȥʤ?) ?? 1000 (?????ݡ??ͥ??Ȥκ?????) ?δ֤Ǥ???

pair_content ?롼?????ˤ??äơ??ץ??????ޤϡ? ?????ο??Υڥ??????ο??ǹ????????뤫?򸫤Ĥ??뤳?Ȥ??Ǥ??ޤ??? ???? 3 ?Ĥΰ?????ɬ?פǤ??? ???Υڥ????ֹ桢???ʿ????ֹ????طʿ????ֹ?????¸???뤿???? short ?? 2 ?ĤΥ??ɥ쥹?Ǥ??? ?ǽ??ΰ??????ͤ? 1 ?? COLOR_PAIRS-1 ?δ֤ˤ???ɬ?פ??????ޤ??? 2 ?֤??ΰ????? 3 ?֤??ΰ??????ؤ????ɥ쥹????¸???????ͤ? 0 ?? COLORS ?δ֤ˤ????ޤ???

<ncurses.h> ?Ǥϡ????Υޥ??????????????Ƥ??ޤ??? ???????ϥǥե????Ȥο??Ǥ??? ?ޤ???ncurses ?ϡ?COLOR_BLACK ?? ???٤Ƥ?ü???ˤĤ??ƥǥե????Ȥ??طʿ??Ǥ????????ꤷ?ޤ???

      COLOR_BLACK
      COLOR_RED
      COLOR_GREEN
      COLOR_YELLOW
      COLOR_BLUE
      COLOR_MAGENTA
      COLOR_CYAN
      COLOR_WHITE

???٤ƤΥ롼???󤬽??????Ԥ????Ȥ??????? ERR ???֤??? ???????????˴?λ?????Ȥ??? OK ???֤??ޤ???

?????Ĥ??ηٹ??? VGA ?ߴ??Υ????ե??å????????? 386 ?ޥ????? 486 ?ޥ?????Ŭ?Ѥ????ޤ??? COLOR_YELLOW ?ϼºݤˤ??㿧?Ǥ??? ?????ˤ??뤿???ˤϡ?A_BOLD °????COLOR_YELLOW ???Ȥ߹??碌?ƻ??Ѥ??ޤ??? A_BLINK °???ϡ?????Ū?ˤ??طʤ????뤯?????Ϥ??Ǥ??? ??????ư???˼??Ԥ??뤳?Ȥ?¿???? ?Ǥ?¿??ư??Ƥ??륫???? (???Ȥ??С?Paradise ?????Ӥ????ȸߴ????Τ???????) ?Ǥ⡢ ???뤤 "??????" ?طʤ????ꤷ?褦?Ȥ????Ȥ??? ?ְ??ä?ư???򤹤뤳?Ȥ??????ޤ? (???????????ʤ??????Ǥޤ??????ޤ?)??

???? RGB ?ͤ??????Ǥ??ޤ?????

setf, setb, setaf, setab. curses ?饤?֥????? 2 ?֤??Υڥ????????ǻ??Ѥ??Ƥ??顢?ǽ??Υڥ??˰?¸???ޤ???

ncurses(3), curs_initscr(3), curs_attr(3)

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.