method
keyname
ruby latest stable - Class:
Curses
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.
keyname(p1)public
Returns the character string corresponding to key c
static VALUE
curses_keyname(VALUE obj, VALUE c)
{
#ifdef HAVE_KEYNAME
int cc = curses_char(c);
const char *name;
curses_stdscr();
name = keyname(cc);
if (name) {
return rb_str_new_cstr(name);
}
else {
return Qnil;
}
#else
return Qnil;
#endif
} Related methods
- Class methods
- ESCDELAY
- ESCDELAY=
- TABSIZE
- TABSIZE=
- addch
- addstr
- attroff
- attron
- attrset
- beep
- bkgd
- bkgdset
- can_change_color?
- cbreak
- clear
- close_screen
- closed?
- clrtoeol
- color_content
- color_pair
- color_pairs
- colors
- cols
- crmode
- curs_set
- def_prog_mode
- delch
- deleteln
- doupdate
- echo
- flash
- getch
- getmouse
- getstr
- has_colors?
- inch
- init_color
- init_pair
- init_screen
- insch
- insertln
- keyname
- lines
- mouseinterval
- mousemask
- nl
- nocbreak
- nocrmode
- noecho
- nonl
- noraw
- pair_content
- pair_number
- raw
- refresh
- reset_prog_mode
- resize
- resizeterm
- scrl
- setpos
- setscrreg
- standend
- standout
- start_color
- stdscr
- timeout=
- ungetch
- ungetmouse
- use_default_colors