Method: Curses::Window#move_relative

Defined in:
ext/curses/curses.c

#move_relative(x, y) ⇒ Object

Moves the derived or subwindow inside its parent window. The screen-relative parameters of the window are not changed.



2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
# File 'ext/curses/curses.c', line 2178

static VALUE
window_move_relative(VALUE obj, VALUE y, VALUE x)
{
    struct windata *winp;

    GetWINDOW(obj, winp);
    mvderwin(winp->window, NUM2INT(y), NUM2INT(x));

    return Qnil;
}