downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

ncurses_panel_above> <ncurses_noraw
[edit] Last updated: Fri, 07 Jun 2013

view this page in

ncurses_pair_content

(PHP 4 >= 4.3.0, PHP 5 < 5.3.0, PECL ncurses >= 1.0.0)

ncurses_pair_content色ペアの前景色と背景色を取得する

説明

int ncurses_pair_content ( int $pair , int &$f , int &$b )

指定した色ペアの前景色と背景色を取得します。この関数をコールする前に、 ncurses_start_color() で端末の色機能を初期化しておく必要があります。

パラメータ

pair

情報を取得したい色ペアの番号。

f

色ペアの前景色への参照。返される情報は、 定義済みの色 を指す色番号か、端末が色の変更機能をサポートしている場合に ncurses_init_color() で定義した色となります。

b

色ペアの背景色への参照。返される情報は、 定義済みの色 を指す色番号か、端末が色の変更機能をサポートしている場合に ncurses_init_color() で定義した色となります。

返り値

関数が成功した場合は -1、 ncurses や端末の色機能の初期化ができていない場合は 0 を返します。

参考



add a note add a note User Contributed Notes ncurses_pair_content - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites