menu_userptr(3CURSES) Curses Library Functions menu_userptr(3CURSES)NAME
menu_userptr, set_menu_userptr - associate application data with menus
SYNOPSIS
cc [ flag... ] file... -lmenu-lcurses [ library... ]
#include <menu.h>
char *menu_userptr(MENU *menu);
int set_menu_userptr(MENU *menu, char *userptr);
DESCRIPTION
Every menu has an associated user pointer that can be used to store relevant information. set_menu_userptr() sets the user pointer of menu.
menu_userptr() returns the user pointer of menu.
RETURN VALUES
menu_userptr() returns NULL on error.
set_menu_userptr() returns one of the following:
E_OK The routine returned successfully.
E_SYSTEM_ERROR System error.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO curses(3CURSES), menus(3CURSES), attributes(5)NOTES
The header <menu.h> automatically includes the headers <eti.h> and <curses.h>.
SunOS 5.11 31 Dec 1996 menu_userptr(3CURSES)
Check Out this Related Man Page
menu_userptr(3CURSES) Curses Library Functions menu_userptr(3CURSES)NAME
menu_userptr, set_menu_userptr - associate application data with menus
SYNOPSIS
cc [ flag... ] file... -lmenu -lcurses [ library... ]
#include <menu.h>
char *menu_userptr(MENU *menu);
int set_menu_userptr(MENU *menu, char *userptr);
DESCRIPTION
Every menu has an associated user pointer that can be used to store relevant information. set_menu_userptr() sets the user pointer of menu.
menu_userptr() returns the user pointer of menu.
RETURN VALUES
menu_userptr() returns NULL on error.
set_menu_userptr() returns one of the following:
E_OK The routine returned successfully.
E_SYSTEM_ERROR System error.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO curses(3CURSES), menus(3CURSES), attributes(5)NOTES
The header <menu.h> automatically includes the headers <eti.h> and <curses.h>.
SunOS 5.10 31 Dec 1996 menu_userptr(3CURSES)
I'm working on a script for a basic menu with four options. The first option for the menu asks a user to put in anyone's user name and is supposed to display the user's home directory. If a user does not enter a name, then their own home directory should be displayed. The second menu option is... (0 Replies)
I am very new to Unix and don't know much about it. I've been trying to create a menu and what I don't understand is how to execute a command once a user makes a selection. I have the menu set up. In fact, the following is the code that I have thus far:
#! /bin/csh
# This is the UNIX menu... (0 Replies)
Dear All,
Kindly suggest on how should i proceed with the following requirement
I need to develop an interactive shell script menu which would enable the user to inquire the value of a column based on a key value . The output can be more records..
Also is it possible to do the following
1)... (2 Replies)
As system admin i decided not to give shell access to users and even application admins on production systems.
I give them access via a simple (menu)webpage and the menus are suid capable.
So, even root commands can be granted to someones menu.
I like the fact that no commandline trying or... (1 Reply)