I have a question:
Y X
Tabel a is a array multidimensional --> a(1024,20)
I load in to array a Text from 6000 row where:
in a(1,1) is present the row 1 of original text, in a(1024,1) is present then row 1024 of original test and in... (4 Replies)
When I logon to my server with PuTTY I am forced into a selection menu with few options. How to I opt out of this menu to get to the home directory to view all of the files on the server?
Thanks for the help. :o (1 Reply)
hey all, me again....having a problem with my code, where I essentially am trying to show a menu, have the user select an option (from 1 to 5), then display which selection they picked...
#!/bin/bash
# A LIST OF THE ERROR MESSAGES AND THE PROPER SYNTAX:
error_0="Correct amount of... (1 Reply)
Hi,
I am using a select in ksh for a script
#!/bin/ksh
FIRSTLIST='one two three four quit'
PS3='Please select a number: '
select i in $FIRSTLIST ;
do
case $i in
one) print 'this is one' ;;
two) print 'this is 2' ;;
three) print 'this is 3' ;;
four) print... (7 Replies)
I'm writing a shell script and have a problem with selection when I issue the command, is there a way to automatically choose a selection number one after a selection menue appear
Command
1-choice
2- choice
3-choice
Thanks
Sara (3 Replies)
Hi guys, i would like to create a program that allow user to show the information of certain thing such as network card.
I would like the menu to be dynamic, for example:
my computer system have 2 network card inserted at the moment, therefore the menu will have 2 choice for the user.
eth0... (12 Replies)
Hi Guys,
Please pardon me if this is a silly question, but I have tried to find an answer and going through the man page and failed to get one. I have created a menu driven script with dialog --menu option. Everything is working as expeted, however, it seems that if I have more than 10... (1 Reply)
Hi
I'm currently making a schoolproject and I'm stuck with reading an array into the possible options of a menu dialog. What I mean is: I've put some values into an array, I want all these values from the array to be possible to be selected in the menu. Please help :)
I'm programming in Debian... (1 Reply)
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:
Hi
I'm currently making a schoolproject and I'm stuck with reading an array into the possible options of a... (1 Reply)
Hi,
I need some help taking a selection from a command and adding part of the output to an array.
I'd like to read the items into the array, have the user chose an option from the array and put the item from column 1 into a variable.
The command is:
awless -l list routetables --columns... (7 Replies)
Discussion started by: bignellrp
7 Replies
LEARN ABOUT NETBSD
menu_items
MENU_ITEMS(3) BSD Library Functions Manual MENU_ITEMS(3)NAME
item_count, menu_items, set_menu_items -- attach items to menus or check correspondences
LIBRARY
Curses Menu Library (libmenu, -lmenu)
SYNOPSIS
#include <menu.h>
int
item_count(MENU *menu);
ITEMS **
menu_items(MENU *menu);
int
set_menu_items(MENU *menu, ITEM **items);
DESCRIPTION
The item_count() menu function returns the number of items currently attached to the menu passed. The menu_items() function returns a
pointer to an array of item pointers that represent the menu items currently attached to the given menu. Apart from using new_menu() (see
menu_new(3)) menu items may be attached to a menu by calling set_menu_items() any items currently attached to the menu will be detached and
the NULL terminated array of new items will be attached to the menu.
RETURN VALUES
Any function returning a string pointer will return NULL if an error occurs. Functions returning an integer will return one of the follow-
ing:
E_OK The function was successful.
E_POSTED The menu is already posted.
E_CONNECTED An item was already connected to a menu.
SEE ALSO curses(3), menus(3)NOTES
The header <menu.h> automatically includes both <curses.h> and <eti.h>.
BSD September 10, 1999 BSD