Section: User Commands (1)
Updated: xmessage 1.0.4
xmessage [ -buttons label1[:value1],label2[:value2], ... ] [ options ] -file filename
The xmessage program displays a window containing a message 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 xmessage 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.
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) . . .
The program has a few top-level application resources that allow customizations that are specific to xmessage.
Chris Peterson, MIT Project Athena
Stephen Gildea, X Consortium
Tutoriais de Tecnologia Web