Added in 1.9.1

$menu

Returns the name of the associated window in a menu event.

See also $menutype, $menucontext, $mouse, $menuicon, Menus.

Example

menu @Example {
  Menu Name:echo -ag Menu name is $menu
  Menu Type:echo -ag Menu type is $menutype
  Menu Context:echo -ag Menu context is $menucontext
}