pattern(3menu)


NAME

   set_menu_pattern, menu_pattern - set and get 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.

                                                            pattern(3MENU)


More Linux Commands

manpages/pcilib.7.html
pcilib(7) - a library for accessing PCI devices (Man Page)
The PCI library (also known as pcilib and libpci) is a portable library for accessing PCI devices and their configuration space. ACCESS METHODS The library supp

manpages/IO::AtomicFile.3pm.html
IO::AtomicFile(3pm) - write a file which is updated atomical
This module is intended for people who need to update files reliably in the face of unexpected program termination. For example, you generally dont want to be h

manpages/perlootut.1.html
perlootut(1) ObjectOriented Programming in Perl Tutorial....
This document provides an introduction to object-oriented programming in Perl. It begins with a brief overview of the concepts behind object oriented design. Th

manpages/pr.1.html
pr(1) - convert text files for printing - Linux manual page
Paginate or columnate FILE(s) for printing. Mandatory arguments to long options are mandatory for short options too. +FIRST_PAGE[:LAST_PAGE], --pages=FIRST_PAGE

manpages/glLightiv.3gl.html
glLightiv(3gl) - set light source parameters (Man Page).....
glLight sets the values of individual light source parameters. light names the light and is a symbolic name of the form GL_LIGHT$i$, where 0 &lt;= i &lt; GL_MAX_LIGHT

manpages/xfreerdp.1.html
xfreerdp(1) FreeRDP X11 client (Commands - Linux man page)
xfreerdp is an X11 Remote Desktop Protocol (RDP) client which is part of the FreeRDP project. An RDP server is built-in to many editions of Windows. Alternative

manpages/pcre_copy_substring.3.html
pcre_copy_substring(3) - Perl-compatible regular expressions
This is a convenience function for extracting a captured substring into a given buffer. The arguments are: subject Subject that has been successfully matched ov

manpages/euidaccess.3.html
euidaccess(3) - check effective user's permissions for a fil
Like access(2), euidaccess() checks permissions and existence of the file identified by its argument pathname. However, whereas access(2), performs checks using

top/.del/cmds.html
Linux Concepts, Commands and Examples
Linux Concepts, Commands and the Command Interpreter. Examples and explanations of key commands, concepts and information sources. Describes I/O, redirection, expansion, pipes, etc. Contains links to Linux manpages.

manpages/git-difftool.1.html
git-difftool(1) - Show changes using common diff tools......
git difftool is a Git command that allows you to compare and edit files between revisions using common diff tools. git difftool is a frontend to git diff and ac

manpages/vfs_acl_tdb.8.html
vfs_acl_tdb(8) - Save NTFS-ACLs in a tdb file (Man Page)....
This VFS module is part of the samba(7) suite. The vfs_acl_tdb VFS module stores NTFS Access Control Lists (ACLs) in a tdb file. This enables the full mapping o

manpages/TAILQ_REMOVE.3.html
TAILQ_ENTRY(3) implementations of lists, tail queues, and ci
These macros define and operate on three types of data structures: lists, tail queues, and circular queues. All three structures support the following functiona





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