Method: Curses::Window#resize
- Defined in:
- ext/curses/curses.c
#resize(lines, cols) ⇒ Object
Resize the current window to Fixnum lines
and Fixnum cols
2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 |
# File 'ext/curses/curses.c', line 2967
static VALUE
window_resize(VALUE obj, VALUE lin, VALUE col)
{
#if defined(HAVE_WRESIZE)
struct windata *winp;
GetWINDOW(obj,winp);
return wresize(winp->window, NUM2INT(lin), NUM2INT(col)) == OK ? Qtrue : Qfalse;
#else
return Qnil;
#endif
}
|