このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ

Ruby 1.9.3 リファレンスマニュアル

module function Curses.#color_pair

color_pair(attrs) -> Integer[permalink][rdoc]

[TODO]

Sets the color pair attributes to +attrs+.

以下のコードと同じです。

Curses.attrset(COLOR_PAIR(+attrs+))
[PARAM] attr: