item_visible(3x)

item_visible3x

Check visibility of a menu item

Part of mitem_visible(3x).

Usage

#include <menu.h>

bool item_visible(const ITEM *item);

Overview

A menu item is visible when it is in the portion of a posted menu that is mapped onto the screen (if the menu is scrollable, in particular, this portion will be smaller than the whole menu).

Portability

These routines emulate the System V menu library. They were not supported on Version 7 or BSD versions.

Authors

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.

From ncurses 6.6-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.