Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

menu_post(3x) [redhat man page]

menu_post(3X)															     menu_post(3X)

NAME
menu_post - write or erase menus from associated subwindows SYNOPSIS
#include <menu.h> int post_menu(MENU *menu); int unpost_menu(MENU *menu); DESCRIPTION
The function post_menu displays a menu to its associated subwindow. To trigger physical display of the subwindow, use refresh or some equivalent curses routine (the implicit doupdate triggered by an curses input request will do). post_menu resets the selection status of all items. The function unpost_menu erases menu from its associated subwindow. RETURN VALUE
These routines return one of the following: E_OK The routine succeeded. E_SYSTEM_ERROR System error occurred (see errno). E_BAD_ARGUMENT Routine detected an incorrect or out-of-range argument. E_POSTED The menu has already been posted. E_BAD_STATE Routine was called from an initialization or termination function. E_NO_ROOM Menu is too large for its window. You should consider to use set_menu_format() to solve the problem. E_NOT_POSTED The menu has not been posted. E_NOT_CONNECTED No items are connected to the menu. SEE ALSO
curses(3X), menu(3X). NOTES
The header file <menu.h> automatically includes the header file <curses.h>. PORTABILITY
These routines emulate the System V menu library. They were not supported on Version 7 or BSD versions. AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. menu_post(3X)

Check Out this Related Man Page

menu_post(3X)															     menu_post(3X)

NAME
menu_post - write or erase menus from associated subwindows SYNOPSIS
#include <menu.h> int post_menu(MENU *menu); int unpost_menu(MENU *menu); DESCRIPTION
The function post_menu displays a menu to its associated subwindow. To trigger physical display of the subwindow, use refresh or some equivalent curses routine (the implicit doupdate triggered by an curses input request will do). post_menu resets the selection status of all items. The function unpost_menu erases menu from its associated subwindow. RETURN VALUE
These routines return one of the following: E_OK The routine succeeded. E_SYSTEM_ERROR System error occurred (see errno). E_BAD_ARGUMENT Routine detected an incorrect or out-of-range argument. E_POSTED The menu has already been posted. E_BAD_STATE Routine was called from an initialization or termination function. E_NO_ROOM Menu is too large for its window. You should consider to use set_menu_format() to solve the problem. E_NOT_POSTED The menu has not been posted. E_NOT_CONNECTED No items are connected to the menu. SEE ALSO
curses(3X), menu(3X). NOTES
The header file <menu.h> automatically includes the header file <curses.h>. PORTABILITY
These routines emulate the System V menu library. They were not supported on Version 7 or BSD versions. AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. menu_post(3X)
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

ssh problem on unixtru64

hi guys, ive installed sshv323 on my unix server.my problem is when i tried to login, theres a menu output. =================================== Open Source Internet Solutions Menu =================================== 1) Mail 2) News Reader 3) WWW Line Mode Browser 4) Change Password 5) Read... (0 Replies)
Discussion started by: jefferson
0 Replies

2. SuSE

Madwifi - Only kernel versions 2.4.x are supported.

I have seen this problem posted before, but I have never seen an answer. I have searched a few different Linux forums and exhaustively Googled the problem, but again, I have only seen a solution. I am hoping someone who has experienced this problem was able to solve it and can pass their... (0 Replies)
Discussion started by: LinuxN00bie
0 Replies

3. UNIX for Advanced & Expert Users

Case statement problem

I need to display this menu and accept variables. Can someone tell me why i am having a problem with this case statement, please # TAPE MANAGER MAIN MENU tapemgr_Main_Menu() { echo "Legato Tape Management System Menu" echo " This system is used to report Legato ERV Offsite and Tapes... (6 Replies)
Discussion started by: gzs553
6 Replies

4. Shell Programming and Scripting

Menu help with array selection

Hi there all I got the following I got multiple arrays named for example STAT_AAAA STAT_AAAB STAT_AAAC STAT_AAAD Now what I want I have chosen an option in a menu to select 1 but I dont want to write for all the same thing so I made it a signle one now what I want is to get STAT_ and... (6 Replies)
Discussion started by: draco
6 Replies

5. UNIX for Dummies Questions & Answers

Input A Menu Selection In A Variable

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)
Discussion started by: SoVi3t
1 Replies

6. BSD

Creating an array out of users: shell script

I want to create a shell script for a menu selection consisting of users defined on the machine. To an administrator having the privileges, the selection menu will look as follows: Select the user you want to define the variables for: 1) my-username-1 2) my-username-2 etc Then there would be a... (7 Replies)
Discussion started by: figaro
7 Replies