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

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

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: