menu_new(3X)menu_new(3X)NAME
menu_new - create and destroy menus
SYNOPSIS
#include <menu.h>
MENU *new_menu(ITEM **items);
int free_menu(MENU *menu);
DESCRIPTION
The function new_menu creates a new menu connected to a specified item pointer array (which must be NULL-terminated).
The function free_menu disconnects menu from its item array and frees the storage allocated for the menu.
RETURN VALUE
The function new_menu returns NULL on error. It sets errno according to the function's failure:
E_NOT_CONNECTED
No items are connected to the menu.
E_SYSTEM_ERROR
System error occurred, e.g., malloc failure.
The function free_menu 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 has already been posted.
SEE ALSO curses(3X), menu(3X).
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.
menu_new(3X)
Check Out this Related Man Page
menu_new(3X)menu_new(3X)NAME
menu_new - create and destroy menus
SYNOPSIS
#include <menu.h>
MENU *new_menu(ITEM **items);
int free_menu(MENU *menu);
DESCRIPTION
The function new_menu creates a new menu connected to a specified item pointer array (which must be NULL-terminated).
The function free_menu disconnects menu from its item array and frees the storage allocated for the menu.
RETURN VALUE
The function new_menu returns NULL on error. It sets errno according to the function's failure:
E_NOT_CONNECTED
No items are connected to the menu.
E_SYSTEM_ERROR
System error occurred, e.g., malloc failure.
The function free_menu 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 has already been posted.
SEE ALSO curses(3X), menu(3X).
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.
menu_new(3X)
Hi....
i have two scripts called:
"type" & "selecttype".
In "type" i have only the name of the products ex.: product1 & product2. Now, i have to ADD product3 which includes sub categories: productA, productB, productC, productD, productE, productF. so my New type script (menu) looks as... (1 Reply)
Hi,
Hope you are all well. New to scripting, and all those characters are all a new language for me. Though hoping to get my little head round it all sooner or later.
I was wondering whether anyone could help with a script template example.
What I would like to happen is to run the script... (8 Replies)
I compiled new kernel in linux 10.04 called linux-2.6.26.8-xenomai, it runs alongside the other kernel, but when I want to boot it I get an error message saying:
Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/sda5 does not exist.
After making the modules and headers
I made the... (4 Replies)
The problem is
I need it too go from the main menu by pressing 6, to the submenu search_proc. In the search_proc menu/section it need to accept a variable and search the processes for it and sort by PID and Process name. I'm stuck and ran out of ideas. I also cannot figure out why it keeps... (2 Replies)
Hello,
I have Centos 5.8 installed in a Virtual box. I want to edit the menu which appears when the right button of the mouse is clicked on the desktop.
I found this procedure for gnome "window manager":
Place any script, link or binary (must be executable) in the folder
... (0 Replies)
In the attached bash file I am trying to add a block of code to add2text that will copy the input from match to a text file (file.txt).
For example, if from the menu choice 1 is select the user is asked for the id.... lets say that is 12345, after that id is matched and converted can it be added... (22 Replies)
I am trying to figure out why I am having a "problem" with some functions in a bash script I am running. The reason for air quoting is that the functions are working, they are just not displaying anything to screen when called from another function. Here's an example:
function Create_Input
{... (6 Replies)
I'm working on updates to the mobile phone view, and it's going to look much better I think. Here are some current prototypes:
Prototype Mobile Home Page:
https://www.unix.com/members/1-albums214-picture690.jpg
Prototype Mobile Search Page:
... (43 Replies)
Hey,
I moved the user information in the top right on the navbar to side panel and replace it with a clickable avatar image. If you have an avatar, you will see your avatar and if you don't you will see some default one (will change it to something better later).
If you have any notification... (53 Replies)
Regarding the latest version of the UserCP prototype (version 0.63) I have made a lot of major changes, including
Added a "Posts Timeline" table for the recent posts, complimenting the non-table version earlier, which has been moved off the main menu (link at the bottom of the table).
Added a... (4 Replies)
I was looking through the topics and I wasn't sure if this was the best place to post this question:
I was wondering, out of curiosity, which software everyone was using to code their scripts in. I do mostly sh/ksh and my favorite has always been EditPlus because it is small, fast, yet powerful.... (409 Replies)