Method: Curses::Window#attron
- Defined in:
- ext/curses/curses.c
#attron(attrs) ⇒ Object
Turns on the named attributes attrs without turning any other attributes on or off.
See also Curses::Window.attrset
2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 |
# File 'ext/curses/curses.c', line 2812 static VALUE window_attron(VALUE obj, VALUE attrs) { #ifdef HAVE_WATTRON struct windata *winp; VALUE val; GetWINDOW(obj,winp); val = INT2FIX(wattron(winp->window,NUM2CHTYPE(attrs))); if (rb_block_given_p()) { rb_yield(val); wattroff(winp->window,NUM2CHTYPE(attrs)); return val; } else{ return val; } #else return Qtrue; #endif } |