Method: Curses::Menu#driver

Defined in:
ext/curses/curses.c

#driver(command) ⇒ Object

call-seq:

driver(command)

Perform the command on the menu.



3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
# File 'ext/curses/curses.c', line 3565

static VALUE
menu_driver_m(VALUE obj, VALUE command)
{
    struct menudata *menup;
    int error;

    GetMENU(obj, menup);
    error = menu_driver(menup->menu, NUM2INT(command));
    check_curses_error(error);

    return obj;
}