Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.
keypad=(p1)public
See Curses::Window.keypad
static VALUE
window_keypad(VALUE obj, VALUE val)
{
struct windata *winp;
GetWINDOW(obj,winp);
/* keypad() of NetBSD's libcurses returns no value */
#if defined(__NetBSD__) && !defined(NCURSES_VERSION)
keypad(winp->window,(RTEST(val) ? TRUE : FALSE));
return Qnil;
#else
/* may have to raise exception on ERR */
return (keypad(winp->window,RTEST(val) ? TRUE : FALSE)) == OK ?
Qtrue : Qfalse;
#endif
} Related methods
- Instance methods
- <<
- addch
- addstr
- attroff
- attron
- attrset
- begx
- begy
- bkgd
- bkgdset
- box
- clear
- close
- clrtoeol
- color_set
- curx
- cury
- delch
- deleteln
- getbkgd
- getch
- getstr
- idlok
- inch
- insch
- insertln
- keypad
- keypad=
- maxx
- maxy
- move
- nodelay=
- noutrefresh
- refresh
- resize
- scrl
- scroll
- scrollok
- setpos
- setscrreg
- standend
- standout
- subwin
- timeout=
- Class methods
- new