Sponsored Content
Top Forums Shell Programming and Scripting Need Menu option each on a new line Post 302986728 by RudiC on Tuesday 29th of November 2016 10:56:14 AM
Old 11-29-2016
Does this help:
man bash:
Quote:
COLUMNS
Used by the select compound command to determine the terminal width when printing selection lists. Automatically set if the checkwinsize option is enabled or in an interactive shell upon receipt of a SIGWINCH.
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

How to add Win2000, Win Me option to Lilo menu?

Hi All, I have installed RH Linux 7.1, windows 2000 and windows ME in the same machine. There are two booting menu: Lilo: Linux Dos Dos : Windows2000 WindowsME If I want to use windowME, I need to boot lilo and choose dos and final choose windows ME. Have any... (3 Replies)
Discussion started by: wilsonchan1000
3 Replies

2. Shell Programming and Scripting

a main menu option?

I have created a main menu in the following way: while true; do echo " " echo "Main Menu: " echo "Please Select An Option Using The Options Provided." echo " " echo "1 - Search All Files" echo " " echo "2 - Search Individual Files" echo " " ... (1 Reply)
Discussion started by: amatuer_lee_3
1 Replies

3. Shell Programming and Scripting

Unix Shell Script: With Menu Option

I am attempting to create a shell script with the following capaciblities: 1. Listed options to choice from 2. Use to perform awk statements 3. Print a report with the awk results My questions are 1. How do I select more than one file for option #5 and #6 2. How to I create an... (11 Replies)
Discussion started by: jroberson
11 Replies

4. Shell Programming and Scripting

script to show menu option & need to be autorun

hi i need to perform following task have to write script to display menu like 1) login as user1 2) login as user2 3) login as user3 4) go to shell script will be run through root user user1, user2 will be logged to specific thr account. if 4th option selected it must pass... (3 Replies)
Discussion started by: anup13
3 Replies

5. Shell Programming and Scripting

How do I add the option to change the path in a menu?

How do I add the option to change the path in a menu? I have this script. The user chooses a number and had the option of doing something, looking for log files etc. There is a possibility they might want to look at a different path other than what I have given them such as... (2 Replies)
Discussion started by: taekwondo
2 Replies

6. UNIX for Dummies Questions & Answers

What is a menu or command line option driven script?

i'm confused what this means. i was asked to design a menu or command line option driven script that reads out of a DB and displays info such as read_data.pl -u <user> -e <event> which would print commands run by <user>with the <event> in the db. any suggestions? i've been using... (2 Replies)
Discussion started by: kpddong
2 Replies

7. Ubuntu

Add Option To Right Menu

hey all, I already installed nautilus-actions now , I want to add "print path" script(option) to the right context menu!.. I did : http://img853.imageshack.us/img853/6973/59818245.png http://img847.imageshack.us/img847/8758/37217230.png the script print located in... (2 Replies)
Discussion started by: eawedat
2 Replies

8. Shell Programming and Scripting

sh file: READ (menu) but now run with option

I have a script which uses READ to detect choice of menu option...now I want to change the script without doing whole rewrite such that when user runs ./script.sh 5 it would execute menu option 5 rather than user running ./script.sh waiting for it to load and then pressing "5 enter" Is it... (1 Reply)
Discussion started by: holyearth
1 Replies

9. Programming

Listing Option Menu Choices from Text File

Hello, I am starting up a tool and one of the initial steps is to select a site/location which is being read from a text file. Here is the text file contents: site1 site2 site3 Here is the code: #!/usr/bin/python from Tkinter import * (3 Replies)
Discussion started by: tattoostreet
3 Replies

10. Shell Programming and Scripting

Passing positioning array as whiptail -- menu option

I may have asked this before, so forgive OF. Problem: I can pass positioning array as -- menu option to whiptail, but it does not show in the whiptail form as an array - only single (first member "lsusb" ) entry / line shows up. Code: DynamicEntry=$(whiptail \ --title "DEBUG... (1 Reply)
Discussion started by: annacreek
1 Replies
Gtk2::Menu(3)						User Contributed Perl Documentation					     Gtk2::Menu(3)

NAME
Gtk2::Menu HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::MenuShell +----Gtk2::Menu INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable METHODS
widget = Gtk2::Menu->new accelgroup = $menu->get_accel_group $menu->set_accel_group ($accel_group) o $accel_group (Gtk2::AccelGroup) string = $menu->get_accel_path Since: gtk+ 2.14 $menu->set_accel_path ($accel_path) o $accel_path (string) widget = $menu->get_active $menu->set_active ($index) o $index (integer) $menu->attach ($child, $left_attach, $right_attach, $top_attach, $bottom_attach) o $child (Gtk2::Widget) o $left_attach (integer) o $right_attach (integer) o $top_attach (integer) o $bottom_attach (integer) Since: gtk+ 2.4 $menu->attach_to_widget ($attach_widget, $detacher) o $attach_widget (Gtk2::Widget) o $detacher (scalar) widget = $menu->get_attach_widget $menu->detach list = Gtk2::Menu->get_for_attach_widget ($widget) o $widget (Gtk2::Widget) Since: gtk+ 2.6 integer = $menu->get_monitor Since: gtk+ 2.14 $menu->set_monitor ($monitor_num) o $monitor_num (integer) Since: gtk+ 2.4 $menu->popdown $menu->popup ($parent_menu_shell, $parent_menu_item, $menu_pos_func, $data, $button, $activate_time) o $parent_menu_shell (Gtk2::Widget or undef) o $parent_menu_item (Gtk2::Widget or undef) o $menu_pos_func (scalar) o $data (scalar) o $button (integer) o $activate_time (integer) $menu->reorder_child ($child, $position) o $child (Gtk2::Widget) o $position (integer) $menu->reposition $menu->set_screen ($screen) o $screen (Gtk2::Gdk::Screen) Since: gtk+ 2.2 boolean = $menu->get_tearoff_state $menu->set_tearoff_state ($torn_off) o $torn_off (boolean) string = $menu->get_title $menu->set_title ($title) o $title (string) PROPERTIES
'accel-group' (Gtk2::AccelGroup : readable / writable / private) The accel group holding accelerators for the menu 'accel-path' (string : readable / writable / private) An accel path used to conveniently construct accel paths of child items 'active' (integer : readable / writable / private) The currently selected menu item 'attach-widget' (Gtk2::Widget : readable / writable / private) The widget the menu is attached to 'monitor' (integer : readable / writable / private) The monitor the menu will be popped up on 'reserve-toggle-size' (boolean : readable / writable / private) A boolean that indicates whether the menu reserves space for toggles and icons 'tearoff-state' (boolean : readable / writable / private) A boolean that indicates whether the menu is torn-off 'tearoff-title' (string : readable / writable / private) A title that may be displayed by the window manager when this menu is torn-off SIGNALS
move-scroll (Gtk2::Menu, Gtk2::ScrollType) ENUMS AND FLAGS
enum Gtk2::ScrollType o 'none' / 'GTK_SCROLL_NONE' o 'jump' / 'GTK_SCROLL_JUMP' o 'step-backward' / 'GTK_SCROLL_STEP_BACKWARD' o 'step-forward' / 'GTK_SCROLL_STEP_FORWARD' o 'page-backward' / 'GTK_SCROLL_PAGE_BACKWARD' o 'page-forward' / 'GTK_SCROLL_PAGE_FORWARD' o 'step-up' / 'GTK_SCROLL_STEP_UP' o 'step-down' / 'GTK_SCROLL_STEP_DOWN' o 'page-up' / 'GTK_SCROLL_PAGE_UP' o 'page-down' / 'GTK_SCROLL_PAGE_DOWN' o 'step-left' / 'GTK_SCROLL_STEP_LEFT' o 'step-right' / 'GTK_SCROLL_STEP_RIGHT' o 'page-left' / 'GTK_SCROLL_PAGE_LEFT' o 'page-right' / 'GTK_SCROLL_PAGE_RIGHT' o 'start' / 'GTK_SCROLL_START' o 'end' / 'GTK_SCROLL_END' SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::MenuShell COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::Menu(3)
All times are GMT -4. The time now is 06:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy