Cascading bash menus


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Cascading bash menus
# 1  
Old 08-09-2018
Cascading bash menus

I currently have a main menu (using whiptail) and one of the options makes an instance of another menu - sort of cascading fashion.

I like to be able to terminate the current (top) menu and return to the underlying main one.


I was thinking enclosing the main menu in "do... done" block.



I have some issues copying using mouse blocks - it hopelessly breaks the file so I really do not want to try this without having same confidence it will do the job.



Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

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

2. AIX

SMS menus are not supported on JS20

Hello, I am new to AIX... I am having this problem trying to re-install AIX 5L 5.2 on a blade (JS20) Then update it to 5.3 This blade now has 5.3 and needs to be re-install But the problem is when I press 1 while it is restarting.... I see the message: SMS menus are not supported on... (4 Replies)
Discussion started by: mifch
4 Replies

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

4. UNIX for Dummies Questions & Answers

Creating menus in script file

I'm very new to Unix and know the simplest of its commands. I am trying to write a script file that has a menu with the following options showing: 1) Display all files in a user's home directory. 2) Welcome yourself to the program 3) Display System Information 4) Exit to Windows I am able... (6 Replies)
Discussion started by: sinjin
6 Replies

5. Programming

ncurses -> the best way to use menus

hello there, i'm exploring the curses lib and i'm having some trouble with "defining a style". to clarify: i'm creating a menu driven app and i've been thinking what's the best way to use menus: make global vars (not my favourite), creating a function which designs the menu and returns the... (2 Replies)
Discussion started by: crashnburn
2 Replies
Login or Register to Ask a Question
glutMenuStatusFunc(3GLUT)					       GLUT						 glutMenuStatusFunc(3GLUT)

NAME
glutMenuStatusFunc - sets the global menu status callback. SYNTAX
#include <GLUT/glut.h> void glutMenuStatusFunc(void (*func)(int status, int x, int y)); void glutMenuStateFunc(void (*func)(int status)); ARGUMENTS
func The new menu status (or state) callback function. DESCRIPTION
glutMenuStatusFunc sets the global menu status callback so a GLUT program can determine when a menu is in use or not. When a menu status callback is registered, it will be called with the value GLUT_MENU_IN_USE for its value parameter when pop-up menus are in use by the user; and the callback will be called with the value GLUT_MENU_NOT_IN_USE for its status parameter when pop-up menus are no longer in use. The x and y parameters indicate the location in window coordinates of the button press that caused the menu to go into use, or the location where the menu was released (may be outside the window). The func parameter names the callback function. Other callbacks continue to operate (except mouse motion callbacks) when pop-up menus are in use so the menu status callback allows a program to suspend animation or other tasks when menus are in use. The cascading and unmapping of sub-menus from an initial pop-up menu does not generate menu status callbacks. There is a single menu status callback for GLUT. When the menu status callback is called, the current menu will be set to the initial pop-up menu in both the GLUT_MENU_IN_USE and GLUT_MENU_NOT_IN_USE cases. The current window will be set to the window from which the initial menu was popped up from, also in both cases. Passing NULL to glutMenuStatusFunc disables the generation of the menu status callback. glutMenuStateFunc is a deprecated version of the glutMenuStatusFunc routine. The only difference is glutMenuStateFunc callback prototype does not deliver the two additional x and y coordinates. SEE ALSO
glutCreateMenu, glutCreateWindow AUTHOR
Mark J. Kilgard (mjk@nvidia.com) GLUT
3.7 glutMenuStatusFunc(3GLUT)