set_menu_pattern, menu_pattern - set and get a menu's pattern buffer


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


   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.


   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.

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

        Routine was called from an initialization or termination function.

        No items are connected to menu.

        Character failed to match.

        System error occurred (see errno).


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


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


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


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


More Linux Commands

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

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

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

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

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

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

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

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

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.

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

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

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.