Menu at the bottom


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Menu at the bottom
# 1  
Old 02-05-2008
Menu at the bottom

Hi everyone,

I'm new to Linux and bash scripting.
Question? How can I display a menu at the bottom of the screen when displaying a content of a file with the less command?

Like in gvim with bash support, when debugging or testing your script this text "Press enter or type command to continue" is displayed at the bottom of the window.

Thanks in advance
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

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

2. Post Here to Contact Site Administrators and Moderators

Newbie reports: some posts show only the title and bottom-of-page menu. No text in the middle!

When I try to look at some of the posts (like "Rookie Grandmother"), I see the thread title and the menu at the bottom, but not the text of the post in the middle. I can see ALL of the posts in the Recent menu, but NONE of the others. The screenshot I attached shows the situation. I just... (2 Replies)
Discussion started by: JRWoodward
2 Replies

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

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

5. Shell Programming and Scripting

Display a menu on bottom right of screen

Hi, I have a menu of around 10 lines with options. I want to display it in bottom right corner of screen for better display. I can do it with clear screen. But I don't want to use it, because it will clear the existing text. After one choice from menu is executed, the menu should just place... (3 Replies)
Discussion started by: som.nitk
3 Replies
Login or Register to Ask a Question
MENU_DRIVER(3)						   BSD Library Functions Manual 					    MENU_DRIVER(3)

NAME
menu_driver -- main menu handling function LIBRARY
Curses Menu Library (libmenu, -lmenu) SYNOPSIS
#include <menu.h> int menu_driver(MENU *menu, int c); DESCRIPTION
The menu_driver() function is the guts of the menu system. It takes the commands passed by c parameter and performs the requested action on the menu given. The following commands may be given to the menu driver: Command Action REQ_LEFT_ITEM Sets the new current item to be the item to the left of the current item. REQ_RIGHT_ITEM Sets the new current item to be the item to the rights of the current item. REQ_UP_ITEM Sets the new current item to be the item above the current item. REQ_DOWN_ITEM Sets the new current item to be the item below the current item. REQ_SCR_ULINE Scroll the menu one line towards the bottom of the menu window. The new current item becomes the item immediately above the current item. REQ_SCR_DLINE Scroll the menu one line towards the top of the menu window. The new current item becomes the item immediately below the current item. REQ_SCR_DPAGE Scroll the menu one page towards the bottom of the menu window. REQ_SCR_UPAGE Scroll the menu one page towards the top of the menu window. REQ_FIRST_ITEM Set the current item to be the first item in the menu. REQ_LAST_ITEM Set the current item to be the last item in the menu. REQ_NEXT_ITEM Set the new current item to be the next item in the item array after the current item. REQ_PREV_ITEM Set the new current item to be the item before the current item in the items array. REQ_TOGGLE_ITEM If the item is selectable then toggle the item's value. REQ_CLEAR_PATTERN Clear all the characters currently in the menu's pattern buffer. REQ_BACK_PATTERN Remove the last character from the pattern buffer. REQ_NEXT_MATCH Attempt to find the next item that matches the pattern buffer. REQ_PREV_MATCH Attempt to find the previous item that matches the pattern buffer. If menu_driver() is passed a command that is greater than MAX_COMMAND then the command passed is assumed to be a user defined command and menu_driver() returns E_UNKNOWN_COMMAND. Otherwise if the command is a printable character then the character represented by the command is placed at the end of the pattern buffer and an attempt is made to match the pattern buffer against the items in the menu. RETURN VALUES
The functions return one of the following error values: E_OK The function was successful. E_SYSTEM_ERROR There was a system error during the call. E_BAD_ARGUMENT One or more of the arguments passed to the function was incorrect. E_NOT_POSTED The menu is not posted. E_UNKNOWN_COMMAND The menu driver does not recognize the request passed to it. E_NO_MATCH The character search failed to find a match. E_NOT_CONNECTED The item is not connected to a menu. E_REQUEST_DENIED The menu driver could not process the request. SEE ALSO
curses(3), menus(3) NOTES
The header <menu.h> automatically includes both <curses.h> and <eti.h>. BSD
September 10, 1999 BSD