pattern



pattern

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO
NOTES
PORTABILITY
AUTHORS

NAME

menu_pattern − get and set a menu’s pattern buffer

SYNOPSIS

#include <menu.h>
int set_menu_pattern(MENU *menu, const char *pattern);
char *menu_pattern(const MENU *menu);

DESCRIPTION

Every menu has an associated pattern match buffer. As input events that are printable characters come in, they are appended to this match buffer and tested for a match, as described in driver(3MENU).

The function set_menu_pattern sets the pattern buffer for the given menu and tries to find the first matching item. If it succeeds, that item becomes current; if not, the current item does not change.

The function menu_pattern returns the pattern buffer of the given menu.

RETURN VALUE

The function menu_pattern returns a pointer, which is NULL if the menu parameter is NULL. Otherwise, it is a pointer to a string which is empty if no pattern has been set. It does not set errno.

The function set_menu_pattern may return the following error codes:

E_OK

The routine succeeded.

E_BAD_ARGUMENT

Routine detected an incorrect or out-of-range argument.

E_BAD_STATE

Routine was called from an initialization or termination function.

E_NOT_CONNECTED

No items are connected to menu.

E_NO_MATCH

Character failed to match.

E_SYSTEM_ERROR

System error occurred (see errno).

SEE ALSO

ncurses(3NCURSES), menu(3MENU).

NOTES

The header file <menu.h> automatically includes the header file <curses.h>.

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.




More Linux Commands

manpages/Tcl_UtfToUpper.3.html
Tcl_UtfToUpper(3) - routines for manipulating the case of Un
The first three routines convert the case of individual Unicode characters: If ch represents a lower-case character, Tcl_UniCharToUpper returns the correspondin

manpages/XkbSetNamedIndicator.3.html
XkbSetNamedIndicator(3) - Names an indicator if it is not al
If a compatible version of the Xkb extension is not available in the server, XkbSetNamedIndicator returns False. Otherwise, it sends a request to the X server t

manpages/ufraw.1.html
ufraw(1) Convert camera RAW images to standard image files.
The Unidentified Flying Raw (UFRaw) is a utility to read and manipulate raw images from digital cameras. It reads raw images using Dave Coffins raw conversion u

manpages/pvscan.8.html
pvscan(8) - scan all disks for physical volumes (Man Page)
pvscan scans all supported LVM block devices in the system for physical volumes. OPTIONS See lvm(8) for common options. -e, --exported Only show physical volume

manpages/XConfigureWindow.3.html
XConfigureWindow(3) - configure windows and window changes s
XConfigureWindow.3 - The XConfigureWindow function uses the values specified in the XWindowChanges structure to reconfigure a windows size, position, border, an

manpages/Unicode::Collate::CJK::JISX0208.3pm.html
Unicode::Collate::CJK::JISX0208(3pm) - weighting JIS KANJI f
Unicode::Collate::CJK::JISX0208 provides weightJISX0208(), that is adequate for overrideCJK of Unicode::Collate and makes tailoring of 6355 kanji ( CJK Unified

manpages/XSupportsLocale.3.html
XSupportsLocale(3) - determine locale support and configure
The XSupportsLocale function returns True if Xlib functions are capable of operating under the current locale. If it returns False, Xlib locale-dependent functi

manpages/raw_sp.3ncurses.html
raw_sp(3ncurses) - curses screen-pointer extension (ManPage)
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

manpages/menu_term.3menu.html
menu_term(3menu) - set hooks for automatic invocation by app
These functions make it possible to set hook functions to be called at various points in the automatic processing of input event codes by menu_driver. The funct

manpages/gnutls_dtls_get_mtu.3.html
gnutls_dtls_get_mtu(3) - API function - Linux manual page...
This function will return the MTU size as set with gnutls_dtls_set_mtu(). This is not the actual MTU of data you can transmit. Use gnutls_dtls_get_data_mtu() fo

manpages/Ttk_PlaceBox.3.html
Ttk_PlaceBox(3) - Tk themed geometry utilities (Man Page)...
The Ttk_Box structure represents a rectangular region of a window: typedef struct { int x; int y; int width; int height; } Ttk_Box; All coordinates are relative

manpages/lrand48_r.3.html
lrand48_r(3) - generate uniformly distributed pseudo-random
These functions are the reentrant analogs of the functions described in drand48(3). Instead of modifying the global random generator state, they use the supplie





We can't live, work or learn in freedom unless the software we use is free.