Sortix
Sortix Download Manual Development Source Code News Blog More
current nightly

Sortix volatile manual

This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.

NAME

new_panel, panel_window, replace_panel, del_panel — panel routines

LIBRARY

library “libpanel”

SYNOPSIS

#include <panel.h>
PANEL *
new_panel(WINDOW *win);
WINDOW *
panel_window(PANEL *p);
int
replace_panel(PANEL *p, WINDOW *win);
int
del_panel(PANEL *p);

DESCRIPTION

The function new_panel() creates a new panel associated with the curses window win. The new panel is visible and is placed at the top of the deck.
The curses window associated with a panel may be obtained with panel_window() and changed with replace_panel().
The function del_panel() hides the panel and deletes it. Note that the curses window associated with the panel is not deleted.

RETURN VALUES

Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following values:
OK
The function completed successfully.
ERR
An error occurred in the function.

SEE ALSO

panel(3)
Copyright 2011-2025 Jonas 'Sortie' Termansen and contributors.
Sortix's source code is free software under the ISC license.
#sortix on irc.sortix.org
@sortix_org