Method: Curses::Window#color_set
- Defined in:
- ext/curses/curses.c
#color_set(col) ⇒ Object
Sets the current color of the given window to the foreground/background combination described by the Fixnum col.
2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 |
# File 'ext/curses/curses.c', line 2728 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; } |