+ Panel routines are a functional layer added to <B><A HREF="curses.3X.html">curses(3X)</A></B>, make only
+ high-level curses calls, and work anywhere terminfo curses does.
+
+
+</PRE><H2><a name="h2-FUNCTIONS">FUNCTIONS</a></H2><PRE>
+
+</PRE><H3><a name="h3-bottom_panel">bottom_panel</a></H3><PRE>
+ <B>bottom_panel(</B><I>pan</I><B>)</B> puts panel <I>pan</I> at the bottom of all panels.
+
+
+</PRE><H3><a name="h3-ceiling_panel">ceiling_panel</a></H3><PRE>
+ <B>ceiling_panel(</B><I>sp</I><B>)</B> acts like <B>panel_below(NULL)</B>, for the given <B>SCREEN</B> <I>sp</I>.
+
+
+</PRE><H3><a name="h3-del_panel">del_panel</a></H3><PRE>
+ <B>del_panel(</B><I>pan</I><B>)</B> removes the given panel <I>pan</I> from the stack and
+ deallocates the <B>PANEL</B> structure (but not its associated window).
+
+
+</PRE><H3><a name="h3-ground_panel">ground_panel</a></H3><PRE>
+ <B>ground_panel(</B><I>sp</I><B>)</B> acts like <B>panel_above(NULL)</B>, for the given <B>SCREEN</B> <I>sp</I>.
+
+
+</PRE><H3><a name="h3-hide_panel">hide_panel</a></H3><PRE>
+ <B>hide_panel(</B><I>pan</I><B>)</B> removes the given panel <I>pan</I> from the panel stack and
+ thus hides it from view. The <B>PANEL</B> structure is not lost, merely
+ removed from the stack.
+
+
+</PRE><H3><a name="h3-move_panel">move_panel</a></H3><PRE>
+ <B>move_panel(</B><I>pan</I><B>,</B><I>starty</I><B>,</B><I>startx</I><B>)</B> moves the given panel <I>pan</I>'s window so
+ that its upper-left corner is at <I>starty</I>, <I>startx</I>. It does not change
+ the position of the panel in the stack. Be sure to use this function,
+ not <B><A HREF="curs_window.3X.html">mvwin(3X)</A></B>, to move a panel window.
+
+
+</PRE><H3><a name="h3-new_panel">new_panel</a></H3><PRE>
+ <B>new_panel(</B><I>win</I><B>)</B> allocates a <B>PANEL</B> structure, associates it with <I>win</I>,
+ places the panel on the top of the stack (causes it to be displayed
+ above any other panel) and returns a pointer to the new panel.
+
+
+</PRE><H3><a name="h3-panel_above">panel_above</a></H3><PRE>
+ <B>panel_above(</B><I>pan</I><B>)</B> returns a pointer to the panel above <I>pan</I>. If the
+ panel argument is <B>(PANEL</B> <B>*)0</B>, it returns a pointer to the bottom panel
+ in the stack.
+
+
+</PRE><H3><a name="h3-panel_below">panel_below</a></H3><PRE>
+ <B>panel_below(</B><I>pan</I><B>)</B> returns a pointer to the panel just below <I>pan</I>. If the
+ panel argument is <B>(PANEL</B> <B>*)0</B>, it returns a pointer to the top panel in
+ the stack.
+
+
+</PRE><H3><a name="h3-panel_hidden">panel_hidden</a></H3><PRE>
+ <B>panel_hidden(</B><I>pan</I><B>)</B> returns <B>TRUE</B> if the panel <I>pan</I> is in the panel stack,
+ <B>FALSE</B> if it is not. If the panel is a null pointer, return <B>ERR</B>.
+
+
+</PRE><H3><a name="h3-panel_userptr">panel_userptr</a></H3><PRE>
+ <B>panel_userptr(</B><I>pan</I><B>)</B> returns the user pointer for a given panel <I>pan</I>.
+
+
+</PRE><H3><a name="h3-panel_window">panel_window</a></H3><PRE>
+ <B>panel_window(</B><I>pan</I><B>)</B> returns a pointer to the window of the given panel
+ <I>pan</I>.
+
+
+</PRE><H3><a name="h3-replace_panel">replace_panel</a></H3><PRE>
+ <B>replace_panel(</B><I>pan</I><B>,</B><I>window</I><B>)</B> replaces the current window of panel <I>pan</I> with
+ <I>window</I> This is useful, for example if you want to resize a panel. In
+ <B>ncurses</B>, you can call <B>replace_panel</B> to resize a panel using a window
+ resized with <B><A HREF="wresize.3X.html">wresize(3X)</A></B>. It does not change the position of the panel
+ in the stack.
+
+
+</PRE><H3><a name="h3-set_panel_userptr">set_panel_userptr</a></H3><PRE>
+ <B>set_panel_userptr(</B><I>pan</I><B>,</B><I>ptr</I><B>)</B> sets the panel's user pointer.
+
+
+</PRE><H3><a name="h3-show_panel">show_panel</a></H3><PRE>
+ <B>show_panel(</B><I>pan</I><B>)</B> makes a hidden panel visible by placing it on top of
+ the panels in the panel stack. See <B>COMPATIBILITY</B> below.
+
+
+</PRE><H3><a name="h3-top_panel">top_panel</a></H3><PRE>
+ <B>top_panel(</B><I>pan</I><B>)</B> puts the given visible panel <I>pan</I> on top of all panels in
+ the stack. See <B>COMPATIBILITY</B> below.
+
+
+</PRE><H3><a name="h3-update_panels">update_panels</a></H3><PRE>
+ <B>update_panels()</B> refreshes the <I>virtual</I> <I>screen</I> to reflect the relations
+ between the panels in the stack, but does not call <B><A HREF="curs_refresh.3X.html">doupdate(3X)</A></B> to
+ refresh the <I>physical</I> <I>screen</I>. Use this function and not <B><A HREF="curs_refresh.3X.html">wrefresh(3X)</A></B> or
+ <B><A HREF="curs_refresh.3X.html">wnoutrefresh(3X)</A></B>.
+
+ <B>update_panels</B> may be called more than once before a call to <B>doupdate</B>,
+ but <B>doupdate</B> is the function responsible for updating the <I>physical</I>
+ <I>screen</I>.
+
+
+</PRE><H2><a name="h2-DIAGNOSTICS">DIAGNOSTICS</a></H2><PRE>
+ Each routine that returns a pointer returns <B>NULL</B> if an error occurs.
+ Each routine that returns an int value returns <B>OK</B> if it executes
+ successfully and <B>ERR</B> if not.
+
+ Except as noted, the <I>pan</I> and <I>window</I> parameters must be non-null. If
+ those are null, an error is returned.
+
+ The <B>move_panel</B> function uses <B><A HREF="curs_window.3X.html">mvwin(3X)</A></B>, and will return an error if
+ <B>mvwin</B> returns an error.
+
+
+</PRE><H2><a name="h2-COMPATIBILITY">COMPATIBILITY</a></H2><PRE>
+ Reasonable care has been taken to ensure compatibility with the
+ native panel facility introduced in System V (inspection of the SVr4
+ manual pages suggests the programming interface is unchanged). The
+ <B>PANEL</B> data structures are merely similar. The programmer is
+ cautioned not to directly use <B>PANEL</B> fields.
+
+ The functions <B>show_panel</B> and <B>top_panel</B> are identical in this
+ implementation, and work equally well with displayed or hidden panels.
+ In the native System V implementation, <B>show_panel</B> is intended for
+ making a hidden panel visible (at the top of the stack) and <B>top_panel</B>
+ is intended for making an already-visible panel move to the top of the
+ stack. You are cautioned to use the correct function to ensure
+ compatibility with native panel libraries.
+
+
+</PRE><H2><a name="h2-NOTE">NOTE</a></H2><PRE>
+ In your library list, libpanel.a should be before libncurses.a; that
+ is, you should say "-lpanel -lncurses", not the other way around (which
+ would give a link-error with static libraries).
+
+
+</PRE><H2><a name="h2-PORTABILITY">PORTABILITY</a></H2><PRE>
+ The panel facility was documented in SVr4.2 in <I>Character</I> <I>User</I> <I>Interface</I>
+ <I>Programming</I> <I>(UNIX</I> <I>SVR4.2)</I>.
+
+ It is not part of X/Open Curses.
+
+ A few implementations exist:
+
+ <B>o</B> Systems based on SVr4 source code, e.g., Solaris, provide this
+ library.
+
+ <B>o</B> <B>ncurses</B> (since version 0.6 in 1993) and <B>PDCurses</B> (since version 2.2
+ in 1995) provide a panel library whose common ancestor was a public
+ domain implementation by Warren Tucker published in <I>u386mon</I> 2.20
+ (1990).
+
+ According to Tucker, the SystemV panel library was first released
+ in SVr3.2 (1988), and his implementation helped with a port to
+ SVr3.1 (1987).
+
+ Several developers have improved each of these; they are no longer
+ the same as Tucker's implementation.
+
+ <B>o</B> NetBSD 8 (2018) has a panel library begun by Valery Ushakov in
+ 2015. This is based on the AT&T documentation.
+
+
+</PRE><H2><a name="h2-FILES">FILES</a></H2><PRE>