Sponsored Content
Full Discussion: Menu script
Top Forums Shell Programming and Scripting Menu script Post 37270 by cbkihong on Monday 16th of June 2003 09:37:35 AM
Old 06-16-2003
My humble bare knowledge and incomplete understanding tells me you would like to do some ncurses-like thing. However, I don't think ncurses libraries can be driven by a shell script. Needs some C programming i think.

Otherwise, I think the only way left is to use embed ANSI color sequences but it just adds some color and you can't have effects like the use of arrow keys to jump between and highlight items etc.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help with script for menu

I'm working on a script for a basic menu with four options. The first option for the menu asks a user to put in anyone's user name and is supposed to display the user's home directory. If a user does not enter a name, then their own home directory should be displayed. The second menu option is... (0 Replies)
Discussion started by: sinjin
0 Replies

2. Shell Programming and Scripting

Menu Script

So, I need help writing a Menu script in UNIX. First how can I use letters for the options instead of numbers? Also, is there any templates out on the web I can use? (2 Replies)
Discussion started by: Gboy
2 Replies

3. Shell Programming and Scripting

Script menu problem

Hi there, I am new to Unix and at the moment I am trying to solve my assignment that is to create a script for the program to prompt user to type three codes, from user point of view it should be done by typing codes separating them by spaces. Then program displays a menu with these three... (2 Replies)
Discussion started by: Dannel
2 Replies

4. Shell Programming and Scripting

Menu Script looping

Hi , I have a menu driven script as shown below echo "" echo "*** 1 - option 1 " echo "*** " echo "*** 2 - option 2 " echo "*** 3 - option 3 " ... (3 Replies)
Discussion started by: ultimatix
3 Replies

5. Shell Programming and Scripting

Shell script menu

hi guys, how would you do the following? I have a menu with 5 options in my shell script: 1. Run function 1 against files 2. Run function 2 against files 3. Run function 3 against files 4. Run function 4 against files 5. Run function 5 against files I'd like to be able to run multiple... (10 Replies)
Discussion started by: rich@ardz
10 Replies

6. Shell Programming and Scripting

Menu in Menu script issue

Problem: I am trying to create a menu in a menu script and I am running into an issue with the calculator portion of the script. I am first presented with the ==Options Menu== which all 5 options working correctly. Now comes the fun part. I select option 1 which takes me to my ==Calculator... (1 Reply)
Discussion started by: iDdraig
1 Replies

7. Shell Programming and Scripting

Need help in create menu with 3 sub menu using the case command

hi all i am a newbie to this is there any examples on creating a main menu with 3 sub menu main menu -> option a , b and c a menu -> option 1 ,2 and 3 b menu -> option 1 ,2 c menu -> option 1 ,2 i am getting headache as my code kept getting unexpected EOF ---------- Post... (0 Replies)
Discussion started by: chercm
0 Replies

8. Shell Programming and Scripting

Script to call a menu script and redirect each option to a text file

Hello, I want to design a script that will call an existing menu script and select options one by one and redirict the out put to a file. For example;- In the script MENU.sh there are 10 options i want to design a script MENU2.sh that will select option 2 3 4 6 7 10 and redirict the output... (4 Replies)
Discussion started by: spradha
4 Replies

9. UNIX for Beginners Questions & Answers

Gnome 3.28.3 menu item dissapears under the system menu

I installed CentOS 8 with Gnome 3.28.2 and I noticed that the "switch user" menu item disappeared from under the system menu of Gnome classic (Both X11 & Wayland). I checked google and this problem seems to have a history going back several releases of Gnome. Unfortunately, I never found a... (1 Reply)
Discussion started by: bodisha
1 Replies
Prophet::Web::Menu(3pm) 				User Contributed Perl Documentation				   Prophet::Web::Menu(3pm)

NAME
Prophet:Web::Menu - Handle the API for menu navigation METHODS
new PARAMHASH Creates a new Prophet::Web::Menu object. Possible keys in the PARAMHASH are "label", "parent", "sort_order", "url", and "active". See the subroutines with the respective name below for each option's use. label [STRING] Sets or returns the string that the menu item will be displayed as. parent [MENU] Gets or sets the parent Prophet::Web::Menu of this item; this defaults to null. This ensures that the reference is weakened. sort_order [NUMBER] Gets or sets the sort order of the item, as it will be displayed under the parent. This defaults to adding onto the end. link Gets or set a Jifty::Web::Link object that represents this menu item. If you're looking to do complex ajaxy things with menus, this is likely the option you want. target [STRING] Get or set the frame or pseudo-target for this link. something like _blank class [STRING] Gets or sets the CSS class the link should have in addition to the default classes. This is only used if "link" isn't specified. url Gets or sets the URL that the menu's link goes to. If the link provided is not absolute (does not start with a "/"), then is is treated as relative to it's parent's url, and made absolute. active [BOOLEAN] Gets or sets if the menu item is marked as active. Setting this cascades to all of the parents of the menu item. child KEY [, PARAMHASH] If only a KEY is provided, returns the child with that KEY. Otherwise, creates or overwrites the child with that key, passing the PARAMHASH to "new" in Jifty::Web::Menu. Additionally, the paramhash's "label" defaults to the KEY, and the "sort_order" defaults to the pre-existing child's sort order (if a "KEY" is being over- written) or the end of the list, if it is a new "KEY". active_child Returns the first active child node, or "undef" is there is none. delete KEY Removes the child with the provided KEY. children Returns the children of this menu item in sorted order; as an array in array context, or as an array reference in scalar context. render_as_menubar [PARAMHASH] Render menubar with YUI menu, suitable for an application's menu. It can support arbitary levels of submenu. as_link Return this menu item as a "Jifty::Web::Link", either the one we were initialized with or a new one made from the "/label" and "/url" If there's no "/url" and no "/link", renders just the label. perl v5.10.1 2009-12-22 Prophet::Web::Menu(3pm)
All times are GMT -4. The time now is 08:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy