format



format

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO
NOTES
PORTABILITY
AUTHORS

NAME

menu_format − set and get menu sizes

SYNOPSIS

#include <menu.h>
int set_menu_format(MENU *menu, int rows, int cols);
void menu_format(const MENU *menu, int *rows, int *cols);

DESCRIPTION

The function set_menu_format sets the maximum display size of the given menu. If this size is too small to display all menu items, the menu will be made scrollable. If this size is larger than the menus subwindow and the subwindow is too small to display all menu items, post_menu() will fail.

The default format is 16 rows, 1 column. Calling set_menu_format with a null menu pointer will change this default. A zero row or column argument to set_menu_format is interpreted as a request not to change the current value.

The function menu_format returns the maximum-size constraints for the given menu into the storage addressed by rows and cols.

RETURN VALUE

These routines returns one of the following:

E_OK

The routine succeeded.

E_SYSTEM_ERROR

System error occurred (see errno).

E_BAD_ARGUMENT

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

E_POSTED

The menu is already posted.

E_NOT_CONNECTED

No items are connected to the menu.

SEE ALSO

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

NOTES

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

PORTABILITY

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

AUTHORS

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




More Linux Commands

manpages/command-not-found.1.html
command-not-found(1) - A command-not-found handler (ManPage)
command-not-found handler is designed to tell users which package contains a missing command. The handler is integrated to bash(1) and zsh(1) shells and is not

manpages/pthread_cleanup_pop_restore_np.3.html
pthread_cleanup_pop_restore_np(3) - push and pop thread canc
These functions are the same as pthread_cleanup_push(3) and pthread_cleanup_pop(3), except for the differences noted on this page. Like pthread_cleanup_push(3),

manpages/open.2.html
open(2) - open and possibly create a file or device.........
Given a pathname for a file, open() returns a file descriptor, a small, nonnegative integer for use in subsequent system calls (read(2), write(2), lseek(2), fcn

manpages/gitweb.1.html
gitweb(1) Git web interface (web frontend to Git repositorie
Gitweb provides a web interface to Git repositories. Its features include: * Viewing multiple Git repositories with common root. * Browsing every revision of th

manpages/fc-cat.1.html
fc-cat(1) - read font information cache files (Man Page)....
fc-cat reads the font information from cache files or related to font directories and emits it in ASCII form. OPTIONS This program follows the usual GNU command

manpages/rmiregistry-java-1.7.0-openjdk.1.html
rmiregistry-java-1.7.0-openjdk(1)...........................
rmiregistry-java-1.7.0-openjdk.1 - The rmiregistry command creates and starts a remote object registry on the specified port on the current host. If port is omi

manpages/lvmetad.8.html
lvmetad(8) LVM metadata cache daemon - Linux manual page....
lvmetad is a metadata caching daemon for LVM. The daemon receives notifications from udev rules (which must be installed for LVM to work correctly when lvmetad

manpages/Tcl_UntraceCommand.3.html
Tcl_UntraceCommand(3) - monitor renames and deletes of a com
Tcl_TraceCommand allows a C procedure to monitor operations performed on a Tcl command, so that the C procedure is invoked whenever the command is renamed or de

manpages/gcov-4.6.1.html
gcov-4.6(1) - coverage testing tool - Linux manual page.....
gcov-4.6.1 - gcov is a test coverage program. Use it in concert with GCC to analyze your programs to help create more efficient, faster running code and to disc

manpages/history.5.html
history(5) - record of current and recently expired Usenet a
The file &lt;pathdb in inn.conf&gt;/history keeps a record of all articles currently stored in the news system, as well as those that have been received but since exp

manpages/yptest.8.html
yptest(8) - test NIS configuration - Linux manual page......
yptest calls various NIS functions to check if the NIS configuration is correct and works as expected. OPTIONS -q Be quiet, dont print messages -d domainname Sp

manpages/time.n.html
time(n) - Time the execution of a script - Linux man page...
This command will call the Tcl interpreter count times to evaluate script (or once if count is not specified). It will then return a string of the form 503.2 mi





We can't live, work or learn in freedom unless the software we use is free.