Method: Curses.pair_content

Defined in:
ext/curses/curses.c

.pair_content(pair) ⇒ Object

Returns a 2 item Array, with the foreground and background color, in pair



1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'ext/curses/curses.c', line 1423

static VALUE
curses_pair_content(VALUE obj, VALUE pair)
{
    short f,b;

    curses_stdscr();
    pair_content(NUM2INT(pair),&f,&b);
    return rb_ary_new3(2,INT2FIX(f),INT2FIX(b));
}