AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
MENU (3T) (AT&T UNIX PC only ) FILES /usr /include/menu.h fusr /include/kcodes.h SEE ALSO form(3T), tam(3T). MENU(3T} DIAGNOSTICS Menu returns non-negative keyboard codes (see kcodes.h) when keyboard input terminated the menu interaction. Other return values signal more serious errors and are defined in menu.h. - 6 -
MESSAGE ( 3T ) ( AT&T UNIX PC only ) MESSAGE ( 3T ) NAME message - display error and help messages SYNOPSIS #include int message(mtype, hfile, htitle, format [, arg ] ••• ) int mtype; char *hfile, *htitle, *format; int exhelp(hfile, htitle) char *hfile, *htitle; DESCRIPTION Message formats the passed message a Ia print! and displays the message in a window that message creates. The message is automatically wrapped to fit within the dimensions of the window, and may contain embedded newlines. Message then waits for user input and returns the character read to the caller. Mtype can have one of the following values: MTJ:IELP Displays help message MT_ERROR Displays error message MT_POPUP Displays a popup window MT_QUIT Displays error message with cancel option MT_CONFIRM Displays confirmation message MT_INFO Displays informational message All message types except MT_POPUP display the available choices (ENTER, CANCL, or HELP) and beep any other keys. The MTJNFO message type takes the first line of the message and uses it as the window label. When HELP is selected, message executes uahelp , passing it hfile and htitle as the help file name and initial help display title. Message then waits for uahelp to return. If hfile is NULL, then the HELP choice is not offered or accepted. Ezhelp executes uahelp directly, without going through an intermediate help display. In both cases, if hfile is a full path name then it is passed to uahelp as is, otherwise the pathname Jusrflibfua is assumed. EXAMPLES To print an error message when a file isn't found: message(MT_ERROR, "ua.hlp", "System errors", "%s not found", name); If the user presses the Help key in response to this message, then uahelp will display the page on system errors in the user agent help file. - 1 -
- Page 883 and 884: HSEARCH ( 3C ) HSEARCH ( 3C ) NAME
- Page 885 and 886: HYPOT ( 3M ) HYPOT (3M) NAME hypot
- Page 887: L3TOL (3C) L3TOL (3C) NAME 13tol, l
- Page 890 and 891: (�
- Page 893: LDFHREAD ( 3X ) LDFHREAD ( 3X ) NAM
- Page 897 and 898: LDLSEEK ( 3X ) LDLSEEK ( 3X ) NAME
- Page 899 and 900: LDOHSEEK ( 3X ) (not on PDP-11) LDO
- Page 901 and 902: LDOPEN{3X) LDOPEN { 3X) NAME ldopen
- Page 903 and 904: LDRSEEK ( 3X ) LDRSEEK ( 3X ) NAME
- Page 905: LDSHREAD ( 3X ) LDSHREAD ( 3X ) NAM
- Page 908 and 909: ,ry
- Page 910 and 911: � '"'"--
- Page 912 and 913: I!) r) ·--... .._ _ .. .
- Page 914 and 915: y I
- Page 916 and 917: LOCKF (3C) LOCKF (3C) F _LOCK and F
- Page 918 and 919: I� ' .... ._ .·
- Page 920 and 921: LSEARCH ( 3C ) LSEARCH ( 3C ) unsig
- Page 922 and 923: MALLOC (3C) MALLOC (3C) M_NLBLKS Se
- Page 924 and 925: MA THERR (3M) MATHERR (3M) } BESSEL
- Page 926 and 927: () . -�
- Page 928 and 929: MEMORY (3C} MEMORY (3C) Character m
- Page 930 and 931: MENU (3T) (AT&T UNIX PC only ) MENU
- Page 932 and 933: MENU (3T) (AT&T UNIX PC only ) mite
- Page 936 and 937: MESSAGE ( 3T ) ( AT&T UNIX PC only
- Page 939: MONITOR ( 3C ) MONITOR ( 3C ) NAME
- Page 943 and 944: PASTE (3T) (AT&T UNIX PC only ) PAS
- Page 945 and 946: PASTE ( 3T ) ( AT&T UNIX PC only )
- Page 947: PERROR (3C) PERROR (3C) NAME perror
- Page 950 and 951: (� / I I I I I I I I I I I I I I
- Page 952 and 953: PRINTF (3S) PRINTF (3S) A field wid
- Page 955 and 956: PUTC ( 3S ) PUTC ( 3S ) NAME putc,
- Page 957: PUTENV (3C) PUTENV (3C) NAME putenv
- Page 960 and 961: ···- ·
- Page 962 and 963: I� ·-.---·
- Page 964 and 965: ' ' .} ' 1 . ' .____.,.:
- Page 966 and 967: � ·�
- Page 968 and 969: REGCMP {3X) REGCMP {3X) ( . . . ) P
- Page 970 and 971: SCANF(3S) u 0 X SCANF(3S) an unsign
- Page 973 and 974: � I SETBUF (3S) SETBUF (3S) NAME
- Page 975 and 976: SETJMP (3C) SETJMP ( 3C ) NAME setj
- Page 977 and 978: SINII ( 3M ) SINH ( 3M ) NAME sinh,
- Page 979 and 980: SLEEP (3C) SLEEP ( 3C ) NAME sleep
- Page 981: SPUTL ( 3X ) SPUTL ( 3X ) NAME sput
MENU (3T) (AT&T UNIX PC only )<br />
FILES<br />
/usr /include/menu.h<br />
fusr /include/kcodes.h<br />
SEE ALSO<br />
form(3T), tam(3T).<br />
MENU(3T}<br />
DIAGNOSTICS<br />
Menu returns non-negative keyboard codes (see kcodes.h) when<br />
keyboard input terminated the menu interaction. Other return<br />
values signal more serious errors and are defined in menu.h.<br />
- 6 -