version 1.19, 2020/05/16 15:24:28 |
version 1.20, 2020/10/30 08:55:56 |
|
|
.name = "display-menu", |
.name = "display-menu", |
.alias = "menu", |
.alias = "menu", |
|
|
.args = { "c:t:T:x:y:", 1, -1 }, |
.args = { "c:t:OT:x:y:", 1, -1 }, |
.usage = "[-c target-client] " CMD_TARGET_PANE_USAGE " [-T title] " |
.usage = "[-O] [-c target-client] " CMD_TARGET_PANE_USAGE " [-T title] " |
"[-x position] [-y position] name key command ...", |
"[-x position] [-y position] name key command ...", |
|
|
.target = { 't', CMD_FIND_PANE, 0 }, |
.target = { 't', CMD_FIND_PANE, 0 }, |
|
|
cmd_display_menu_get_position(tc, item, args, &px, &py, menu->width + 4, |
cmd_display_menu_get_position(tc, item, args, &px, &py, menu->width + 4, |
menu->count + 2); |
menu->count + 2); |
|
|
|
if (args_has(args, 'O')) |
|
flags |= MENU_STAYOPEN; |
if (!event->m.valid) |
if (!event->m.valid) |
flags |= MENU_NOMOUSE; |
flags |= MENU_NOMOUSE; |
if (menu_display(menu, flags, item, px, py, tc, target, NULL, |
if (menu_display(menu, flags, item, px, py, tc, target, NULL, |