Method: Curses::Menu#driver

Defined in:
ext/curses/curses.c

#driver(command) ⇒ Object

call-seq:

driver(command)

Perform the command on the menu.



3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
# File 'ext/curses/curses.c', line 3418

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;
}