Method: Curses::Window#getbkgd

Defined in:
ext/curses/curses.c

#getbkgdObject

Returns an Integer (ch) for the character property in the current window.



2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
# File 'ext/curses/curses.c', line 2921

static VALUE
window_getbkgd(VALUE obj)
{
#ifdef HAVE_WGETBKGD
    chtype c;
    struct windata *winp;

    GetWINDOW(obj,winp);
    return (c = getbkgd(winp->window) != ERR) ? ULONG2NUM(c) : Qnil;
#else
    return Qnil;
#endif
}