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
tk_menuBar(1T)						       Tk Built-In Commands						    tk_menuBar(1T)

__________________________________________________________________________________________________________________________________________________

NAME
tk_menuBar, tk_bindForTraversal - Obsolete support for menu bars SYNOPSIS
tk_menuBar frame ?menu menu ...? tk_bindForTraversal arg arg ... _________________________________________________________________ DESCRIPTION
These procedures were used in Tk 3.6 and earlier releases to help manage pulldown menus and to implement keyboard traversal of menus. In Tk 4.0 and later releases they are no longer needed. Stubs for these procedures have been retained for backward compatibility, but they have no effect. You should remove calls to these procedures from your code, since eventually the procedures will go away. From Tk 8.0 onwards, you should instead construct your menubar as a normal menu and then attach it to the toplevel of your choice using the -menu option of that widget. SEE ALSO
menu(1T), toplevel(1T) KEYWORDS
keyboard traversal, menu, menu bar, post ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWTk | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+ NOTES
Source for Tk is available on http://opensolaris.org. Tk tk_menuBar(1T)