Method: Curses::Window#color_set

Defined in:
curses.c

#color_set(col) ⇒ Object



1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
# File 'curses.c', line 1249

static VALUE
window_color_set(VALUE obj, VALUE col) 
{
  struct windata *winp;
  int res;

  GetWINDOW(obj, winp);
  res = wcolor_set(winp->window, NUM2INT(col), NULL);
  return (res == OK) ? Qtrue : Qfalse;
}