-</PRE>
-<H2>RETURN VALUE</H2><PRE>
- The function <STRONG>menu_pattern</STRONG> returns <STRONG>NULL</STRONG> on error. The
- function <STRONG>set_menu_pattern</STRONG> may return the following error
- codes:
+</PRE><H2><a name="h2-DESCRIPTION">DESCRIPTION</a></H2><PRE>
+ 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 <B><A HREF="menu_driver.3X.html">menu_driver(3X)</A></B>.
+
+ The function <B>set_menu_pattern</B> 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 <B>menu_pattern</B> returns the pattern buffer of the given <I>menu</I>.
+
+
+</PRE><H2><a name="h2-RETURN-VALUE">RETURN VALUE</a></H2><PRE>
+ The function <B>menu_pattern</B> returns a pointer, which is <B>NULL</B> if the <I>menu</I>
+ parameter is <B>NULL</B>. Otherwise, it is a pointer to a string which is
+ empty if no pattern has been set. It does not set <B>errno</B>.
+
+ The function <B>set_menu_pattern</B> may return the following error codes: