Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

set_menu_userptr(3curses) [sunos 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)

Check Out this Related Man Page

menu_mark(3CURSES)					     Curses Library Functions						menu_mark(3CURSES)

NAME
menu_mark, set_menu_mark - menus mark string routines SYNOPSIS
cc [ flag... ] file... -lmenu -lcurses [ library... ] #include <menu.h> int set_menu_mark(MENU *menu, char *mark); char *menu_mark(MENU *menu); DESCRIPTION
menus displays mark strings to distinguish selected items in a menu (or the current item in a single-valued menu). set_menu_mark() sets the mark string of menu to mark. menu_mark() returns a pointer to the mark string of menu. RETURN VALUES
menu_mark() returns NULL on error. set_menu_mark() returns one of the following: E_OK The routine returned successfully. E_SYSTEM_ERROR System error. E_BAD_ARGUMENT An incorrect argument was passed to the routine. 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_mark(3CURSES)
Man Page

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Script file menus and coding

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)
Discussion started by: sinjin
0 Replies

2. UNIX for Advanced & Expert Users

Shell menus And Oracle

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)
Discussion started by: ksm
2 Replies

3. Cybersecurity

System access.

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)
Discussion started by: FerryJD
1 Replies