05-30-2007
In fact looking at this again, it looks very hard to do!
As it would mean that my menu options mite change dynamically, i.e. they decide not to show all two options, there could be more.
However it makes the case statement no longer work, as this relies on knowing what option 1 corresponds to and what option 2 corresponds to etc.
Would there be a way round this!?
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I am new to linux and also also to shell scripting.
I have one shell script which unpacks .tgz file and install software on machine.
When this script runs I want to insert id,filename,description(which will be in readme file),log(which will be in log file) and name of unpacked folder... (1 Reply)
Discussion started by: ring
1 Replies
2. UNIX for Dummies Questions & Answers
Anyone know how I can map a windows drive to an apache shared drive?
In my httpd.conf file, I have:
Alias /merc_rpts/ "/u/merc_rpts/"
<Directory "/u/merc_rpts">
Options Indexes
</Directory>
I'm able to bring up a browser and see the contents of this folder.
In... (0 Replies)
Discussion started by: gseyforth
0 Replies
3. SCO
Can anybody help me out to mount USB flash /floppy drive in sco openserver 6.0 . (5 Replies)
Discussion started by: sureshdrajan
5 Replies
4. UNIX for Dummies Questions & Answers
Hi there. i'm new user at here
I need help for this. I need to write a script that maintains a database of cryptographic checksums. In other words, I need this script to check the files checksum whether the files has been modified or not. But i got no idea where to start. Hope anyone here can... (8 Replies)
Discussion started by: hihihehe
8 Replies
5. Hardware
I have a 320 GB drive which dual boots Windows and Debian:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal):... (0 Replies)
Discussion started by: phillipsoasis
0 Replies
6. Shell Programming and Scripting
I have a reseller account with hostgator, which means i have WHM and Cpanel. I have set up a staging environment for one of my wordpress installations (client website), which is essentially sitting at staging.domain.com (live site is at domain.com). The staging website is a complete copy of the... (1 Reply)
Discussion started by: nzrobert
1 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Maintain automobile records in a database
Write a shell script to create, view and modify a simple database... (4 Replies)
Discussion started by: lopez214
4 Replies
8. UNIX for Dummies Questions & Answers
Hi Guys,
Can any one help me on this.
I need help to move .csv/.xls file from unix path to windows shared drive or c:\ drive?
Regards,
LKR (1 Reply)
Discussion started by: lakshmanraok117
1 Replies
LEARN ABOUT REDHAT
menu_opts_off
menu_opts(3X) menu_opts(3X)
NAME
menu_opts - set and get menu options
SYNOPSIS
#include <menu.h>
int set_menu_opts(MENU *menu, OPTIONS opts);
int menu_opts_on(MENU *menu, OPTIONS opts);
int menu_opts_off(MENU *menu, OPTIONS opts);
OPTIONS menu_opts(const MENU *menu);
DESCRIPTION
The function set_menu_opts sets all the given menu's option bits (menu option bits may be logically-OR'ed together).
The function menu_opts_on turns on the given option bits, and leaves others alone.
The function menu_opts_off turns off the given option bits, and leaves others alone.
The function menu_opts returns the menu's current option bits.
The following options are defined (all are on by default):
O_ONEVALUE
Only one item can be selected for this menu.
O_SHOWDESC
Display the item descriptions when the menu is posted.
O_ROWMAJOR
Display the menu in row-major order.
O_IGNORECASE
Ignore the case when pattern-matching.
O_SHOWMATCH
Move the cursor to within the item name while pattern-matching.
O_NONCYCLIC
Don't wrap around next-item and previous-item, requests to the other end of the menu.
RETURN VALUE
Except for menu_opts, each routine returns one of the following:
E_OK The routine succeeded.
E_SYSTEM_ERROR
System error occurred (see errno).
E_POSTED
The menu is already 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_opts(3X)