home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XMESSAGE(1) XMESSAGE(1)
-
-
- NNAAMMEE
- xmessage - display a message or query in a window (X-based
- /bin/echo)
-
- SSYYNNOOPPSSIISS
- xxmmeessssaaggee [ --bbuuttttoonnss _l_a_b_e_l_1[::_v_a_l_u_e_1],,_l_a_b_e_l_2[::_v_a_l_u_e_2],, ...
- ] [ _o_p_t_i_o_n_s ] --ffiillee _f_i_l_e_n_a_m_e
- xxmmeessssaaggee [ --bbuuttttoonnss _l_a_b_e_l_1[::_v_a_l_u_e_1],,_l_a_b_e_l_2[::_v_a_l_u_e_2],, ...
- ] [ _o_p_t_i_o_n_s ] _m_e_s_s_a_g_e ...
-
- DDEESSCCRRIIPPTTIIOONN
- The _x_m_e_s_s_a_g_e program displays a window containing a mes-
- sage from the command line, a file, or standard input.
- Along the lower edge of the message is row of buttons;
- clicking the left mouse button on any of these buttons
- will cause _x_m_e_s_s_a_g_e to exit. Which button was pressed is
- returned in the exit status and, optionally, by writing
- the label of the button to standard output.
-
- The program is typically used by shell scripts to display
- information to the user or to ask the user to make a
- choice.
-
- Unless a size is specified, _x_m_e_s_s_a_g_e sizes itself to fit
- the message, up to a maximum size. If the message is too
- big for the window, _x_m_e_s_s_a_g_e will display scroll bars.
-
- OOPPTTIIOONNSS
- These are the command line options that _x_m_e_s_s_a_g_e under-
- stands.
-
- --bbuuttttoonnss _b_u_t_t_o_n_,_b_u_t_t_o_n_,_._._.
- This option will cause _x_m_e_s_s_a_g_e to create one but-
- ton for each comma-separated _b_u_t_t_o_n argument. The
- corresponding resource is bbuuttttoonnss. Each _b_u_t_t_o_n
- consists of a label optionally followed by a colon
- and an exit value. The label is the name of the
- Command button widget created and will be the
- default text displayed to the user. Since this is
- the name of the widget it may be used to change
- any of the resources associated with that button.
- The exit value will be returned by _x_m_e_s_s_a_g_e if
- that button is selected. The default exit value
- is 100 plus the button number. Buttons are num-
- bered from the left starting with one. The
- default string if no --bbuuttttoonnss option is given is
- ookkaayy::00.
-
- --ddeeffaauulltt _l_a_b_e_l
- Defines the button with a matching _l_a_b_e_l to be the
- default. If not specified there is no default.
- The corresponding resource is ddeeffaauullttBBuuttttoonn.
- Pressing Return anywhere in the _x_m_e_s_s_a_g_e window
- will activate the default button. The default
-
-
-
- X Version 11 26 July 1994 1
-
-
-
-
-
- XMESSAGE(1) XMESSAGE(1)
-
-
- button has a wider border than the others.
-
- --ffiillee _f_i_l_e_n_a_m_e
- File to display. The corresponding resource is
- ffiillee. A _f_i_l_e_n_a_m_e of `--' reads from standard
- input. If this option is not supplied, _x_m_e_s_s_a_g_e
- will display all non-option arguments in the style
- of _e_c_h_o. Either --ffiillee or a message on the command
- line should be provided, but not both.
-
- --pprriinntt This will cause the program to write the label of
- the button pressed to standard output. Equivalent
- to setting the pprriinnttVVaalluuee resource to TRUE. This
- is one way to get feedback as to which button was
- pressed.
-
- --cceenntteerr Pop up the window at the center of the screen.
- Equivalent to setting the cceenntteerr resource to TRUE.
-
- --nneeaarrmmoouussee
- Pop up the window near the mouse cursor. Equiva-
- lent to setting the nneeaarrMMoouussee resource to TRUE.
-
- --ttiimmeeoouutt _s_e_c_s
- Exit with status 0 after _s_e_c_s seconds if the user
- has not clicked on a button yet. The correspond-
- ing resource is ttiimmeeoouutt.
-
- WWIIDDGGEETT HHIIEERRAARRCCHHYY
- Knowing the name and position in the hierarchy of each
- widget is useful when specifying resources for them. In
- the following chart, the class and name of each widget is
- given.
-
- Xmessage (xmessage)
- Form form
- Text message
- Command (label1)
- Command (label2)
- .
- .
- .
-
- RREESSOOUURRCCEESS
- The program has a few top-level application resources that
- allow customizations that are specific to _x_m_e_s_s_a_g_e.
-
- ffiillee A String specifying the file to display.
-
- bbuuttttoonnss A String specifying the buttons to display. See
- the --bbuuttttoonnss command-line option.
-
- ddeeffaauullttBBuuttttoonn
- A String specifying a default button by label.
-
-
-
- X Version 11 26 July 1994 2
-
-
-
-
-
- XMESSAGE(1) XMESSAGE(1)
-
-
- pprriinnttVVaalluuee
- A Boolean value specifying whether the label of
- the button pressed to exit the program is written
- to standard output. The default is FALSE.
-
- cceenntteerr A Boolean value specifying whether to pop up the
- window at the center of the screen. The default
- is FALSE.
-
- nneeaarrMMoouussee
- A Boolean value specifying whether to pop up the
- window near the mouse cursor. The default is
- FALSE.
-
- ttiimmeeoouutt The number of seconds after which to exit with
- status 0. The default is 0, which means never
- time out.
-
- mmaaxxHHeeiigghhtt ((class MMaaxxiimmuumm))
- The maximum height of the text part of the window
- in pixels, used if no size was specified in the
- geometry. The default is 0, which means use 70%
- of the height of the screen.
-
- mmaaxxWWiiddtthh ((class MMaaxxiimmuumm))
- The maximum width of the text part of the window
- in pixels, used if no size was specified in the
- geometry. The default is 0, which means use 70%
- of the width of the screen.
-
- AACCTTIIOONNSS
- eexxiitt((_v_a_l_u_e))
- exit immediately with an exit status of _v_a_l_u_e
- (default 0). This action can be used with trans-
- lations to provide alternate ways of exiting _x_m_e_s_-
- _s_a_g_e.
-
- ddeeffaauulltt--eexxiitt(())
- exit immediately with the exit status specified by
- the default button. If there is no default but-
- ton, this action has no effect.
-
- EEXXIITT SSTTAATTUUSS
- If it detects an error, _x_m_e_s_s_a_g_e returns 1, so this value
- should not be used with a button.
-
- SSEEEE AALLSSOO
- _X(1), _e_c_h_o(1), _c_a_t(1)
-
- AAUUTTHHOORRSS
- Chris Peterson, MIT Project Athena
- Stephen Gildea, X Consortium
-
-
-
-
-
- X Version 11 26 July 1994 3
-
-
-