Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

menu_mark(3curses) [opensolaris 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)

Check Out this Related Man Page

menu_mark(3X)															     menu_mark(3X)

NAME
menu_mark - get and set the menu mark string SYNOPSIS
#include <menu.h> int set_menu_mark(MENU *menu, const char *mark); const char *menu_mark(const MENU *menu); DESCRIPTION
In order to make menu selections visible on older terminals without highlighting or color capability, the menu library marks selected items in a menu with a prefix string. The function set_menu_mark sets the mark string for the given menu. Calling set_menu_mark with a null menu item will abolish the mark string. Note that changing the length of the mark string for a menu while the menu is posted is likely to produce unhelpful behavior. The default string is "-" (a dash). Calling set_menu_mark with a NULL menu argument will change this default. The function menu_mark returns the menu's mark string (or NULL if there is none). RETURN VALUE
The function menu_mark returns NULL on error. The function set_menu_mark may return the following error codes: 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. 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_mark(3X)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

switching between machines

I work for a local authority, and have been asked to extend a project I recently worked on currently there are two (2) menus in operation each menu allows us to allow or deny access to users the problem the menus are on seperate machines (Iwant to make these menus sub menus) I want to... (1 Reply)
Discussion started by: w33man
1 Replies

2. Shell Programming and Scripting

~mark

hi guys I am studing unix and I have some questions to ask. what is the diffrence beteween man and info? how and when we use ~ mark? tanks henk ;) (1 Reply)
Discussion started by: henk
1 Replies

3. What is on Your Mind?

AIX Smit menu designer. WinSmit

Hi, Please excuse me for posting an "ad" message here. Over the last few months I have created software called WinSmit, with this tool you can create your own AIX smit menus and corresponding message files. We all know the smit or smitty menus that IBM provides to maintain the system, the... (6 Replies)
Discussion started by: mimyrtek
6 Replies

4. 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

5. UNIX for Dummies Questions & Answers

tag/mark a file with current absolute path

Hi all, I need to mark a file with it's current location in the file system before being moved. This will enable the file to be restored back to it's original location. Can anyone provide any ideas about the best way to do this, at present i'm trying to use readlink -m to strip off the... (1 Reply)
Discussion started by: skinnygav
1 Replies

6. 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

7. Shell Programming and Scripting

Shell script menu problem

I have tried searching the forum but i haven't found a solution for this. I have a shell script that presents the users with menus. The menus branch out to sub menus. It is all hunky dory as long as i traverse forward. But if i am in a sub menu and return to the previous menu and choose any... (11 Replies)
Discussion started by: goddevil
11 Replies