Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > cursesライブラリ > Cursesモジュール > init_pair
init_pair(pair, f, b) -> bool
[permalink][rdoc][TODO]
Changes the definition of a color-pair.
It takes three arguments: the number of the color-pair to be changed +pair+, the foreground color number +f+, and the background color number +b+.
If the color-pair was previously initialized, the screen is refreshed and all occurrences of that color-pair are changed to the new definition.