*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> menu_pattern (3)              
Title
Content
Arch
Section
 

menu_pattern(3X)

Contents


NAME    [Toc]    [Back]

       menu_pattern - get and set a menu's pattern buffer

SYNOPSIS    [Toc]    [Back]

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

DESCRIPTION    [Toc]    [Back]

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

       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    [Toc]    [Back]

       The  function  menu_pattern  returns  NULL  on  error.	The   function
       set_menu_pattern may return the following error codes:

       E_OK The routine succeeded.

       E_SYSTEM_ERROR    [Toc]    [Back]
	    System error occurred (see errno).

       E_BAD_ARGUMENT    [Toc]    [Back]
	    Routine detected an incorrect or out-of-range argument.

       E_NO_MATCH    [Toc]    [Back]
	    Character failed to match.

SEE ALSO    [Toc]    [Back]

      
      
       curses(3X), menu(3X).

NOTES    [Toc]    [Back]

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

PORTABILITY    [Toc]    [Back]

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

AUTHORS    [Toc]    [Back]

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



							      menu_pattern(3X)
[ Back ]
 Similar pages
Name OS Title
menu_pattern NetBSD get or set menu pattern
VkOptionMenu IRIX An option menu for use with ViewKit menu items
getgconfig IRIX gets the size of a buffer or a state in the current buffer configuration
SSL_peek Tru64 Copy the data in the SSL buffer into the buffer passed to this API
unit IRIX Returns the status of a BUFFER IN or BUFFER OUT statement
dmAudioRateConvert IRIX convert data sampling rate. It consumes an input buffer of floats and generates an output buffer of floats.
vxfs_bc_bufhwm HP-UX VxFS buffer cache high water mark(determines the VxFS buffer cache size)
glsamplepatternsgis IRIX set pattern for multisampling
tt_pattern_arg_add HP-UX add an argument to a pattern
tt_pattern_print HP-UX format a pattern
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service