Method: Curses::Window#curx

Defined in:
ext/curses/curses.c

#curxObject

A getter for the current column (X coord) of the window



2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
# File 'ext/curses/curses.c', line 2232

static VALUE
window_curx(VALUE obj)
{
    struct windata *winp;
    int x, RB_UNUSED_VAR(y);

    GetWINDOW(obj, winp);
    getyx(winp->window, y, x);
    return INT2FIX(x);
}