pattern


HOME

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/gimp.1.html
gimp(1) - an image manipulation and paint program. (ManPage)
GIMP is the GNU Image Manipulation Program. It is used to edit and manipulate images. It can load and save a variety of image formats and can be used to convert

manpages/ps2pdfwr.1.html
ps2pdfwr(1) - Convert PostScript to PDF without specifying C
This wrapper script invokes gs(1) with following arguments -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite as well as the appropriate -dOutputFile argument, all preceded

manpages/intrflush.3ncurses.html
intrflush(3ncurses) - curses input options - Linux man page
Normally, the tty driver buffers typed characters until a newline or carriage return is typed. The cbreak routine disables line buffering and erase/kill charact

manpages/gst-xmlinspect-0.10.1.html
gst-xmlinspect-0.10(1) - print info about a GStreamer plugin
gst-xmlinspect is a tool that prints out information on available GStreamer plugins, information about a particular plugin, or information about a particular el

manpages/pam_authenticate.3.html
pam_authenticate(3) - account authentication (Man Page).....
The pam_authenticate function is used to authenticate the user. The user is required to provide an authentication token depending upon the authentication servic

manpages/shmat.2.html
shmat(2) - shared memory operations - Linux manual page.....
shmat() shmat() attaches the System V shared memory segment identified by shmid to the address space of the calling process. The attaching address is specified

manpages/mmd.1.html
mmd(1) - make an MSDOS subdirectory - Linux manual page.....
The mmd command is used to make an MS-DOS subdirectory. Its syntax is: mmd [-D clash_option] msdosdirectory [ msdosdirectories... ] Mmd makes a new directory on

manpages/Tk_GetAllBindings.3.html
Tk_GetAllBindings(3) - invoke scripts in response to X event
These procedures provide a general-purpose mechanism for creating and invoking bindings. Bindings are organized in terms of binding tables. A binding table cons

manpages/netsnmp_trap_api.3.html
netsnmp_trap_api(3) - send TRAPs or INFORMs from a Net-SNMP
These three routines may be used to send traps from a MIB module within the Net-SNMP agent (including an AgentX subagent). send_easy_trap() sends an SNMPv1 trap

manpages/gnutls_x509_crq_import.3.html
gnutls_x509_crq_import(3) - API function - Linux man page...
This function will convert the given DER or PEM encoded certificate request to a gnutls_x509_crq_t structure. The output will be stored in crq. If the Certifica

manpages/pthread_sigqueue.3.html
pthread_sigqueue(3) - queue a signal and data to a thread...
The pthread_sigqueue() function performs a similar task to sigqueue(3), but, rather than sending a signal to a process, it sends a signal to a thread in the sam

manpages/git-update-index.1.html
git-update-index(1) - Register file contents in the working
Modifies the index or directory cache. Each file mentioned is updated into the index and any unmerged or needs updating state is cleared. See also git-add(1) fo





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