|
NAMExmsg - X window system message display program.SYNOPSISxmsg [-options ...] -m <message>NOTEThe xmsg command is identical in behaviour to the X11R4 version of xmessage but it also builds/installs/runs with X11R5, so it allows you to have the R4 behaviour on R5 machines. The behaviour of the standard R5 version of xmessage is significantly different from, and incompatible with, the R4 version. For the rest of this man page, where you see "xmessage", substitute "xmsg".DESCRIPTIONXmsg opens a window on the screen that will contain the text of a message from either the command line or stdin. This text may have a scroll bar along the left side to allow the user to browse through relatively long messages. Along the lower edge of the message is list of words with boxes around them. Clicking the left mouse button on any of these "buttons" (words with boxes around them) will cause the message to go away. If there is more than one "button" then some state will be returned to the invoker of the xmessage process via a change of the exit status of the program.This program serves two functions. Firstly, it can be a method for shell scripts to present the user with information much as 'echo' allows in a tty environment, as well as allowing the user to answer simple questions. Secondly it allows much of the functionality of 'cat' again in a windowing versus tty environment. It should be noted that this program is intended for short messages, and will be quite slow when asked to handle long files from stdin. Although xmessage can accept input from stdin, this input is not allowed to come from a tty. If this is attempted, an error message will be printed. If xmessage is executed with an incorrect argument then it will print a usage message to standard output, as well as to an xmessage window. COMMAND LINE OPTIONSThese are the command line options that xmessage understands. Please note that some of these are inherited from the XToolkit and as the list of default toolkit options changes xmessage will follow.
-bw <pixels>
-bd <color>
-fg <color>
-bg <color>
-fn <font>
WIDGET AND RESOURCE NAMESResource management is an important part of X Toolkit applications, and xmessage is no exception. All objects in xmessage can have many of their distinguishing characteristics changed by changing the resources associated with them. Below is a brief list of the resources and what they modify.
In order to change the default values for the widget resources you need to have the names; thus, below I have specified the names of some of the most common widgets.
You can also reference Widgets by class. The important classes for this application are: Command and Text. Here are a few examples of how to string all this information together into a resource specification that can be used on the command line with the -xrm flag, or added to your .Xresources file.
In addition Xmessage has a few specific application resources that allow customizations that are specific to xmessage.
ERROR MESSAGESXmessage errors may be printed into their own xmessage window. This invocation of xmessage has a different name. This allows its resources to be specified separately. The name of xmessage error program is xmessage_error.EXIT STATUSXmessage will exit with status zero (0) when there is only one button in the list, and it is clicked to exit. If there is more than one button in the list then the exit status will correspond to the number of the button pressed, starting at one (1) for the first button, and counting up. Zero (0) is not used because no button should have a preferred place over the others.WATERLOO DIFFERENCESSee the NOTE section at the beginning of this man page.SEE ALSOX(1), X(8C), xmessage(1), echo(1), cat(1)BUGSThere must be some, somewhere.AUTHORSCopyright 1988 by Massachusetts Institute of Technology.Chris Peterson, MIT Project Athena
Visit the GSP FreeBSD Man Page Interface. |