dtaction.sgm 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  1. <!-- $XConsortium: dtaction.sgm /main/13 1996/09/08 20:17:02 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <refentry id="CDEMX.MAN90.rsml.1">
  10. <refmeta><refentrytitle>dtactionfile</refentrytitle><manvolnum>special file
  11. </manvolnum></refmeta>
  12. <refnamediv><refname><filename>dtactionfile</filename></refname><refpurpose>
  13. define the content of desktop action definition records</refpurpose></refnamediv>
  14. <refsynopsisdiv>
  15. <synopsis>set DtDbVersion=<emphasis>version_number</emphasis>
  16. set <emphasis>VariableName</emphasis>=<emphasis>variable_value</emphasis>
  17. ACTION <emphasis>action_name</emphasis>
  18. {
  19. # <emphasis>Comment</emphasis>
  20. <emphasis>FieldName</emphasis> <emphasis>field_value</emphasis>
  21. <emphasis>FieldName</emphasis> <emphasis>field_value</emphasis>
  22. ...
  23. }</synopsis>
  24. </refsynopsisdiv>
  25. <refsect1>
  26. <title>DESCRIPTION</title>
  27. <para>&str-XZ; actions define the behavior of icons, front panel controls
  28. and operations on data objects. Actions are defined in a set of text files
  29. with the <Filename>.dt</Filename> suffix. Each action definition consists of
  30. the word <systemitem class="Constant">ACTION</systemitem> followed by an action
  31. name and a list of Field and Value pairs (one per line) on lines by themselves
  32. and enclosed in brackets.</para>
  33. <para>These text files may also contain data typing information as described
  34. in &cdeman.dtdtsfile;. (See &cdeman.dtdtfile; for
  35. the general syntax and location of the actions and data types database.)</para>
  36. <para>Actions are of one of the following classes: command actions, ToolTalk
  37. message actions or map actions. These action classes are described in the
  38. following sections.</para>
  39. <refsect2>
  40. <title>Command Actions</title>
  41. <para>Command actions are identified by a <systemitem class="Constant">TYPE</systemitem> <systemitem class="Constant">COMMAND</systemitem> field. This
  42. field defines an execution string to invoke and a set of related information,
  43. such as the current working directory for the command and the host where the
  44. command should be executed. The following field names are unique to command
  45. actions: <systemitem class="Constant">EXEC_STRING</systemitem>, <systemitem class="Constant">EXEC_HOST</systemitem>, <systemitem class="Constant">CWD</systemitem>, <systemitem class="Constant">WINDOW_TYPE</systemitem> and <systemitem class="Constant">TERM_OPTS</systemitem>.</para>
  46. </refsect2>
  47. <refsect2>
  48. <title>ToolTalk Message Actions</title>
  49. <para>ToolTalk message actions are identified by a <systemitem class="Constant">TYPE</systemitem> <systemitem class="Constant">TT_MSG</systemitem> field.
  50. This field defines a ToolTalk message to be sent. The following fields are
  51. unique to ToolTalk message actions: <systemitem class="Constant">TT_CLASS</systemitem>, <systemitem class="Constant">TT_SCOPE</systemitem>, <systemitem class="Constant">TT_OPERATION</systemitem>, <systemitem class="Constant">TT_FILE</systemitem>, <systemitem class="Constant">TT_ARGn_MODE</systemitem>, <systemitem class="Constant">TT_ARGn_VTYPE</systemitem>, <systemitem class="Constant">TT_ARGn_REP_TYPE</systemitem> and <systemitem class="Constant">TT_ARGn_VALUE</systemitem>.</para>
  52. </refsect2>
  53. <refsect2>
  54. <title>Map Actions</title>
  55. <para>Map actions are identified by a <systemitem class="Constant">TYPE</systemitem> <systemitem class="Constant">MAP</systemitem> field. This field does not define any specific
  56. behavior; instead, this field specifies a different action name that should
  57. be invoked in place of the original action. Multiple map actions can be chained
  58. together, but the chain must ultimately terminate in a non-map action. The
  59. following field is unique to map actions: <systemitem class="Constant">MAP_ACTION</systemitem>.</para>
  60. </refsect2>
  61. <refsect2>
  62. <title>Common Fields</title>
  63. <para>In addition to the unique action fields listed above, all actions support
  64. the following fields: <systemitem class="Constant">LABEL</systemitem>, <systemitem class="Constant">ICON</systemitem>, <systemitem class="Constant">DESCRIPTION</systemitem>, <systemitem class="Constant">ARG_CLASS</systemitem>, <systemitem class="Constant">ARG_MODE</systemitem>, <systemitem class="Constant">ARG_TYPE</systemitem>, <systemitem class="Constant">ARG_COUNT</systemitem> and <systemitem class="Constant">TYPE</systemitem>.</para>
  65. </refsect2>
  66. <refsect2>
  67. <title>Keywords</title>
  68. <para>The value string for certain action fields may reference special keywords
  69. enclosed within percentage character (%) delimiters. These keywords are evaluated
  70. when the action is invoked and replaced with the appropriate value. In fields
  71. that do not evaluate keywords, the keyword is taken literally. The valid keywords
  72. are:</para>
  73. <variablelist>
  74. <varlistentry><term>%DatabaseHost%</term>
  75. <listitem>
  76. <para>The name of the host where the action definition file is located. This
  77. hostname is specified by the host portion of the <emphasis>host:/</emphasis> <emphasis>path</emphasis> searchpath used to find the action.</para>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry><term>%DisplayHost%</term>
  81. <listitem>
  82. <para>The name of the host where the X server displaying the &str-XZ; session
  83. is running.</para>
  84. </listitem>
  85. </varlistentry>
  86. <varlistentry><term>%LocalHost%</term>
  87. <listitem>
  88. <para>The name of the host where the application invoking the action is executing.
  89. </para>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry><term>%SessionHost%</term>
  93. <listitem>
  94. <para>The name of the host where the controlling login manager ( &cdeman.dtlogin;) runs.</para>
  95. </listitem>
  96. </varlistentry>
  97. </variablelist>
  98. </refsect2>
  99. <refsect2>
  100. <title>Argument References</title>
  101. <para>Arguments passed to actions can be referenced in certain action fields
  102. using special argument keywords enclosed within percent character (%) delimiters.
  103. These argument keywords are evaluated when the action is invoked and replaced
  104. with the appropriate value. In fields that do not evaluate keywords, the keyword
  105. is taken literally. The valid argument keywords are:</para>
  106. <variablelist>
  107. <varlistentry><term>%Arg_<emphasis>n%</emphasis></term>
  108. <listitem>
  109. <para>The <symbol role="Variable">n</symbol>th (starting with 1) argument
  110. of the action. If the action was invoked with fewer than <symbol role="Variable">n</symbol> arguments, the value of the keyword is <systemitem class="Constant">NULL</systemitem>.</para>
  111. </listitem>
  112. </varlistentry>
  113. <varlistentry><term>%Args%</term>
  114. <listitem>
  115. <para>All remaining arguments of the action. If any arguments of the action
  116. have already been referenced within this field by an %Arg_ <symbol role="Variable">n</symbol>% keyword, those arguments are not referenced a second time by %Args%.
  117. </para>
  118. </listitem>
  119. </varlistentry>
  120. <varlistentry><term>%"<emphasis>prompt</emphasis>"%</term>
  121. <listitem>
  122. <para>Prompt the user for a value, using <emphasis>prompt</emphasis> as the
  123. label of a text field.</para>
  124. </listitem>
  125. </varlistentry>
  126. <varlistentry><term>%Arg_<symbol role="Variable">n</symbol>"<emphasis>prompt</emphasis> "%</term>
  127. <listitem>
  128. <para>The <symbol role="Variable">n</symbol>th (starting with 1) argument
  129. of the action. If the action was invoked with fewer than <symbol role="Variable">n</symbol> arguments, prompt the user for a value using <emphasis>prompt</emphasis>
  130. as the label of a text field.</para>
  131. </listitem>
  132. </varlistentry>
  133. </variablelist>
  134. <para>If a keyword references the name of a file argument, the value of the
  135. keyword is expanded to an absolute pathname prior to substitution. In addition,
  136. if the file name is to be passed to a remote system, the file name is first
  137. mapped appropriately (see &cdeman.tt.file.netfile; and &cdeman.tt.netfile.file;).</para>
  138. <para>If the keyword references a buffer argument, the buffer data is placed
  139. in a temporary file and the name of the temporary file is substituted, as
  140. described above. Some action fields provide direct support for data buffers
  141. and do not require use of a temporary file. This behavior is noted in the
  142. description of the appropriate fields.</para>
  143. <para>If the keyword references a string obtained from the user, it is treated
  144. as a simple string and the value substituted without any transformation.</para>
  145. <para>Argument references can be forced to be treated as file names or simple
  146. strings by using the <literal>(File)</literal> or <literal>(String)</literal>
  147. qualifier immediately after the opening % of the keyword. For example:</para>
  148. <informalexample remap="indent">
  149. <programlisting>%(String)Arg_<symbol role="Variable">n</symbol>%
  150. %(File)"<emphasis>prompt</emphasis>"%</programlisting>
  151. </informalexample>
  152. <para>If an action is invoked with more than one argument, and the action
  153. definition only references one or zero arguments, the action is iteratively
  154. invoked with each of the supplied arguments. If the action definition references
  155. more than one argument, any extra arguments are ignored.</para>
  156. </refsect2>
  157. <refsect2>
  158. <title>Action Selection</title>
  159. <para>Multiple actions can be defined with the same name. When the action
  160. is invoked, the appropriate action definition is chosen based on the number
  161. and class of arguments supplied. For example, the <literal>Open</literal>
  162. action may invoke &cdeman.dtpad; if a text file is supplied as
  163. an argument, or it may invoke &cdeman.dticon; if a bitmap file
  164. argument is supplied. The <systemitem class="Constant">ARG_COUNT</systemitem>, <systemitem class="Constant">ARG_CLASS</systemitem>, <systemitem class="Constant">ARG_MODE</systemitem> and <systemitem class="Constant">ARG_TYPE</systemitem> fields
  165. specify the number, mode and types of arguments that are accepted by a particular
  166. action. Because these fields can have shell pattern-matching values such as
  167. *, it is possible that the action database contains multiple actions that
  168. have the same name and are all capable of accepting the arguments that are
  169. supplied. In this case, the following precedence rules are used to choose
  170. a single action definition to invoke:</para>
  171. <itemizedlist>
  172. <!-- merged from xo+cde-->
  173. <listitem><para>Actions with more specific attribute values take precedence
  174. over more general attribute values.</para>
  175. </listitem><listitem><para>For the <systemitem class="Constant">ARG_COUNT</systemitem> field, an exact numerical value (<emphasis>N</emphasis>) is
  176. more specific than a less-than range (<emphasis>&lt;N</emphasis>). A less-than
  177. range (<emphasis>&lt;N</emphasis>) is more specific than a greater-than range
  178. (<emphasis>>N</emphasis>). And a greater-than range (<emphasis>>N</emphasis>)
  179. is more specific than a shell pattern-matching character (*).</para>
  180. </listitem><listitem><para>For the <systemitem class="Constant">ARG_CLASS</systemitem> and <systemitem class="Constant">ARG_TYPE</systemitem> fields,
  181. a single item is more specific than a list of items and a list of items is
  182. more specific than a shell pattern-matching *.</para>
  183. </listitem><listitem><para>For the <systemitem class="Constant">ARG_MODE</systemitem>
  184. field, <literal>w</literal> (writable) and <literal>!w</literal> (not writable)
  185. are more specific than a shell pattern-matching *.</para>
  186. </listitem><listitem><para>The fields have the following precedence, from
  187. high to low: <systemitem class="Constant">ARG_CLASS</systemitem>, <systemitem class="Constant">ARG_TYPE</systemitem>, <systemitem class="Constant">ARG_MODE</systemitem>, <systemitem class="Constant">ARG_COUNT</systemitem>.</para>
  188. </listitem><listitem><para>If two action definitions have equal specificity,
  189. the action definition appearing first in the database load order takes precedence.
  190. Database directories are loaded in the order specified by the <systemitem class="EnvironVar">DTDATABASESEARCHPATH</systemitem> environment variable,
  191. and are loaded in the collation order of their file names.</para>
  192. </listitem></itemizedlist>
  193. </refsect2>
  194. <refsect2>
  195. <title>ARG_CLASS Field</title>
  196. <para>The <systemitem class="Constant">ARG_CLASS</systemitem> field is optional
  197. for all types of actions. This field specifies the class of arguments the
  198. action accepts. If an action is invoked with more than one argument, the class
  199. of only the first argument is checked against the value of the <systemitem class="Constant">ARG_CLASS</systemitem> field. The valid values for this field
  200. are:</para>
  201. <variablelist>
  202. <varlistentry><term>BUFFER</term>
  203. <listitem>
  204. <para>The action accepts arguments that are blocks of data held in memory.
  205. </para>
  206. </listitem>
  207. </varlistentry>
  208. <varlistentry><term>FILE</term>
  209. <listitem>
  210. <para>The action accepts arguments that are file names.</para>
  211. </listitem>
  212. </varlistentry>
  213. <varlistentry><term>*</term>
  214. <listitem>
  215. <para>The action is defined for all classes of arguments.</para>
  216. </listitem>
  217. </varlistentry>
  218. </variablelist>
  219. <para>A comma-separated list of valid values is also allowed and specifies
  220. that the action accepts arguments of any of the listed classes.</para>
  221. <para>If an action is defined to accept a buffer argument, yet the implementation
  222. of the action requires a file name, the buffer is automatically converted
  223. into a temporary file for the action to use. See the description of the <literal>DtTmpDir</literal> resource for information on configuring the location of
  224. these temporary files.</para>
  225. <para>Keywords are not evaluated in the <systemitem class="Constant">ARG_CLASS</systemitem> field. The default value of the <systemitem class="Constant">ARG_CLASS</systemitem> field is <literal>*</literal>.</para>
  226. </refsect2>
  227. <refsect2>
  228. <title>ARG_COUNT Field</title>
  229. <para>The <systemitem class="Constant">ARG_COUNT</systemitem> field is optional
  230. for all types of actions. The <systemitem class="Constant">ARG_COUNT</systemitem>
  231. field specifies the number of arguments that the action accepts. The valid
  232. values for this field (where <emphasis>N</emphasis> denotes any non-negative
  233. integer) are:</para>
  234. <variablelist>
  235. <varlistentry><term><emphasis>N</emphasis></term>
  236. <listitem>
  237. <para>The action accepts exactly <emphasis>N</emphasis> arguments.</para>
  238. </listitem>
  239. </varlistentry>
  240. <varlistentry><term><emphasis>&lt;N</emphasis></term>
  241. <listitem>
  242. <para>The action accepts any number of arguments less than <emphasis>N</emphasis>.
  243. </para>
  244. </listitem>
  245. </varlistentry>
  246. <varlistentry><term><emphasis>>N</emphasis></term>
  247. <listitem>
  248. <para>The action accepts any number of arguments greater than <emphasis>N</emphasis>.</para>
  249. </listitem>
  250. </varlistentry>
  251. <varlistentry><term>*</term>
  252. <listitem>
  253. <para>The action accepts any number of arguments.</para>
  254. </listitem>
  255. </varlistentry>
  256. </variablelist>
  257. <para>Keywords are not evaluated in the <systemitem class="Constant">ARG_COUNT</systemitem> field. The default value of the <systemitem class="Constant">ARG_COUNT</systemitem> field is <literal>*</literal>.</para>
  258. </refsect2>
  259. <refsect2>
  260. <title>ARG_MODE Field</title>
  261. <para>The <systemitem class="Constant">ARG_MODE</systemitem> field is optional
  262. for all types of actions. This field specifies the mode of arguments the action
  263. accepts. If an action is invoked with more than one argument, the mode of
  264. only the first argument is checked against the value of the <systemitem class="Constant">ARG_MODE</systemitem> field. The valid values for this field are:</para>
  265. <variablelist>
  266. <varlistentry><term><literal>w</literal></term>
  267. <listitem>
  268. <para>The action accepts arguments that writable by the user.</para>
  269. </listitem>
  270. </varlistentry>
  271. <varlistentry><term><literal>!w</literal></term>
  272. <listitem>
  273. <para>The action accepts arguments that are not writable by the user.</para>
  274. </listitem>
  275. </varlistentry>
  276. <varlistentry><term><literal>*</literal></term>
  277. <listitem>
  278. <para>The action is defined for all classes of arguments.</para>
  279. </listitem>
  280. </varlistentry>
  281. </variablelist>
  282. <para>Keywords are not evaluated in the <systemitem class="Constant">ARG_MODE</systemitem> field. The default value of the <systemitem class="Constant">ARG_MODE</systemitem> field is <literal>*</literal>.</para>
  283. </refsect2>
  284. <refsect2>
  285. <title>ARG_TYPE Field</title>
  286. <para>The <systemitem class="Constant">ARG_TYPE</systemitem> field is optional
  287. for all types of actions. This field specifies the types of arguments the
  288. action accepts. If the action is invoked with more than one argument, the
  289. type of only the first argument is checked against the value of this field.
  290. Valid values for this field are * (all data types are accepted), a single
  291. data type name or a comma-separated list of data types. The set of valid data
  292. types are those defined by <systemitem class="Constant">DATA_ATTRIBUTE</systemitem>
  293. records in the data typing database. (See &cdeman.dtdtsfile;
  294. for more information.)</para>
  295. <para>Keywords are not evaluated in the <systemitem class="Constant">ARG_TYPE</systemitem> field. The default value of the <systemitem class="Constant">ARG_TYPE</systemitem> field is <literal>*</literal>.</para>
  296. </refsect2>
  297. <refsect2>
  298. <title>CWD Field</title>
  299. <para>The <systemitem class="Constant">CWD</systemitem> field is optional
  300. for all types of actions. This field specifies the current working directory
  301. to be used when the execution string is invoked. Valid values include any
  302. absolute pathname. If this field is not specified, the current working directory
  303. for the execution string is determined by the following:</para>
  304. <itemizedlist>
  305. <!-- merged from xo+cde-->
  306. <listitem><para>If the application invoking the action specifies a current
  307. working directory, that directory is used.</para>
  308. </listitem><listitem><para>If arguments are supplied to the action and the
  309. first argument is a directory, that directory is used.</para>
  310. </listitem><listitem><para>If arguments are supplied to the action and the
  311. first argument is a file, the directory where the file is located is used.
  312. </para>
  313. </listitem><listitem><para>The current working directory of the application
  314. invoking the action is used.</para>
  315. </listitem></itemizedlist>
  316. <para>Keywords are not evaluated in the <systemitem class="Constant">CWD</systemitem>
  317. field.</para>
  318. </refsect2>
  319. <refsect2>
  320. <title>DESCRIPTION Field</title>
  321. <para>The <systemitem class="Constant">DESCRIPTION</systemitem> field is optional
  322. for <systemitem class="Constant">COMMAND</systemitem> actions. This field
  323. specifies a textual description of the action that is suitable for presentation
  324. to a user requesting information about the action. The description should
  325. contain no formatting information such as tab or newline characters. The application
  326. that presents the information to the user formats the information.</para>
  327. <para>Keywords are not evaluated in the <systemitem class="Constant">DESCRIPTION</systemitem> field. There is no default value for the <systemitem class="Constant">DESCRIPTION</systemitem> field.</para>
  328. </refsect2>
  329. <refsect2>
  330. <title>EXEC_HOST Field</title>
  331. <para>The <systemitem class="Constant">EXEC_HOST</systemitem> field is optional
  332. for <systemitem class="Constant">COMMAND</systemitem> actions. This field
  333. specifies the host where the execution string should be invoked. Valid values
  334. for this field include actual hostnames, as well as any of the hostname keywords.
  335. If a comma-separated list of hostnames is provided, execution is attempted
  336. on each of the hosts in the order specified until execution succeeds.</para>
  337. <para>Keywords are evaluated in the <systemitem class="Constant">EXEC_HOST</systemitem> field. The default value of the <systemitem class="Constant">EXEC_HOST</systemitem> field is <literal>%DatabaseHost%,%LocalHost%</literal>.
  338. (See the description of the <literal>ExecutionHosts</literal> resource for
  339. information on how to change this default value.)</para>
  340. </refsect2>
  341. <refsect2>
  342. <title>EXEC_STRING Field</title>
  343. <para>The <systemitem class="Constant">EXEC_STRING</systemitem> field is required
  344. for <systemitem class="Constant">COMMAND</systemitem> actions. This field
  345. specifies an execution string to be invoked. The string is parsed using the
  346. same quoting rules as defined by <command>sh</command>(1); however, the execution
  347. string is not automatically passed to any shell. Therefore, if the execution
  348. string requires shell features such as redirection of standard input, redirection
  349. of standard output, or pipes, the appropriate shell must be specified explicitly
  350. in the execution string. For example:</para>
  351. <informalexample remap="indent">
  352. <programlisting>EXEC_STRING sh &minus;c 'ls &minus;l | more'</programlisting>
  353. </informalexample>
  354. <para>Keywords are evaluated in the <systemitem class="Constant">EXEC_STRING</systemitem> field. There is no default value for the <systemitem class="Constant">EXEC_STRING</systemitem> field.</para>
  355. </refsect2>
  356. <refsect2>
  357. <title>ICON Field</title>
  358. <para>The <systemitem class="Constant">ICON</systemitem> field is optional
  359. for all types of actions. This field specifies the name of an icon that represents
  360. the action. <!--(In &bsol;*(XZ, the file management and front panel
  361. services show actions as icons.
  362. Icons inform the user of what
  363. actions are available and serve as drop sites as part of
  364. drag-and-drop operations.)
  365. --></para>
  366. <para>Icons are found by using the standard &str-XZ; icon search path, so
  367. the value can be either an absolute pathname (for example, <Filename>/foo/icons/myicon.bm</Filename>), a relative pathname (for example, <literal>icons/myicon.bm</literal>)
  368. or a partial filename (for example, <literal>myicon</literal>). Partial filenames
  369. are preferred because they allow the &str-XZ; icon search path to find the
  370. icon with the optimum size and depth for the current environment.</para>
  371. <para>Keywords are not evaluated in the <systemitem class="Constant">ICON</systemitem> field. The default value of the <systemitem class="Constant">ICON</systemitem> field is <literal>Dtactn</literal>. (See the description
  372. of the <literal>ActionIcon</literal> resource for information on how to change
  373. this default value.)</para>
  374. </refsect2>
  375. <refsect2>
  376. <title>LABEL Field</title>
  377. <para>The <systemitem class="Constant">LABEL</systemitem> field is optional
  378. for all types of actions. This field specifies a user-visible label for the
  379. action. When actions are presented to the user, the localized <systemitem class="Constant">LABEL</systemitem> field is used to identify the action instead
  380. of the non-localized action name.</para>
  381. <para>Keywords are not evaluated in the <systemitem class="Constant">LABEL</systemitem> field. The default value of the <systemitem class="Constant">LABEL</systemitem> field is the name of the action.</para>
  382. </refsect2>
  383. <refsect2>
  384. <title>MAP_ACTION Field</title>
  385. <para>The <systemitem class="Constant">MAP_ACTION</systemitem> field is required
  386. for <systemitem class="Constant">MAP</systemitem> actions. This field specifies
  387. the name of an action that should be invoked in place of the current action.
  388. The specified action is invoked with the same set of arguments that were passed
  389. to the original action.</para>
  390. <para>Keywords are not evaluated in the <systemitem class="Constant">MAP_ACTION</systemitem> field. There is no default value for the <systemitem class="Constant">MAP_ACTION</systemitem> field.</para>
  391. </refsect2>
  392. <refsect2>
  393. <title>TERM_OPTS Field</title>
  394. <para>The <systemitem class="Constant">TERM_OPTS</systemitem> field is optional
  395. for <systemitem class="Constant">COMMAND</systemitem> actions. This field
  396. specifies command-line options that are passed to the terminal emulator for
  397. all <systemitem class="Constant">COMMAND</systemitem> actions that are terminal
  398. based. (That is, any <systemitem class="Constant">COMMAND</systemitem> action
  399. other than those that specify <systemitem class="Constant">WINDOW_TYPE</systemitem> <systemitem class="Constant">NO_STDIO</systemitem>.) These command-line options are typically
  400. used to specify a unique terminal-window geometry, font, color or title.</para>
  401. <para>The value of the <systemitem class="Constant">TERM_OPTS</systemitem>
  402. field must be an option string in a form the terminal emulator supports and
  403. it must only affect the appearance of the terminal window. For example, options
  404. such as <literal>&minus;e</literal>, which affect the behavior of the terminal
  405. window, must not be used.</para>
  406. <para>Keywords are evaluated in the <systemitem class="Constant">TERM_OPTS</systemitem> field. The default value of the <systemitem class="Constant">TERM_OPTS</systemitem> field is</para>
  407. <informalexample remap="indent">
  408. <programlisting>&minus;title action_label</programlisting>
  409. </informalexample>
  410. <para>where <emphasis>action_label</emphasis> is the <systemitem class="Constant">LABEL</systemitem> field for the action. See &cdeman.dtterm; (or <command>xterm</command>(1)) for the meaning of <literal>&minus;title</literal>.</para>
  411. </refsect2>
  412. <refsect2>
  413. <title>TT_ARGn_MODE Field</title>
  414. <para>The <systemitem class="Constant">TT_ARGn_MODE</systemitem> field is
  415. optional for <systemitem class="Constant">TT_MSG</systemitem> actions. This
  416. field specifies the value of the ToolTalk mode attribute for the <symbol role="Variable">n</symbol>th message argument, where <symbol role="Variable">n</symbol> is
  417. zero for the first message argument. The valid values for this field are: <systemitem class="Constant">TT_IN</systemitem>, <systemitem class="Constant">TT_INOUT</systemitem> and <systemitem class="Constant">TT_OUT</systemitem>.</para>
  418. <para>(See <filename role="Header">Tt/tt_c.h</filename> for a description
  419. of these values.)</para>
  420. <para>Keywords are not evaluated in the <systemitem class="Constant">TT_ARGn_MODE</systemitem> field. There is no default value for the <systemitem class="Constant">TT_ARGn_MODE</systemitem> field.</para>
  421. </refsect2>
  422. <refsect2>
  423. <title>TT_ARGn_REP_TYPE Field</title>
  424. <para>The <systemitem class="Constant">TT_ARGn_REP_TYPE</systemitem> field
  425. is optional for <systemitem class="Constant">TT_MSG</systemitem> actions.
  426. This field specifies the representation type of the <symbol role="Variable">n</symbol>th ToolTalk message argument, where <symbol role="Variable">n</symbol>
  427. is zero for the first message argument. The valid values for this field are:
  428. </para>
  429. <variablelist>
  430. <varlistentry><term>TT_REP_UNDEFINED</term>
  431. <listitem>
  432. <para>If <systemitem class="Constant">TT_ARGn_VALUE</systemitem> references
  433. a buffer argument, the representation type is a buffer; otherwise, it is a
  434. string.</para>
  435. </listitem>
  436. </varlistentry>
  437. <varlistentry><term>TT_REP_INTEGER</term>
  438. <listitem>
  439. <para>The representation type is an integer.</para>
  440. </listitem>
  441. </varlistentry>
  442. <varlistentry><term>TT_REP_BUFFER</term>
  443. <listitem>
  444. <para>The representation type is a buffer.</para>
  445. </listitem>
  446. </varlistentry>
  447. <varlistentry><term>TT_REP_STRING</term>
  448. <listitem>
  449. <para>The representation type is string.</para>
  450. </listitem>
  451. </varlistentry>
  452. </variablelist>
  453. <para>Keywords are not evaluated in the <systemitem class="Constant">TT_ARGn_REP_TYPE</systemitem> field. The default value of the <systemitem class="Constant">TT_ARGn_REP_TYPE</systemitem> field is <systemitem class="Constant">TT_REP_UNDEFINED</systemitem>.</para>
  454. </refsect2>
  455. <refsect2>
  456. <title>TT_ARGn_VALUE Field</title>
  457. <para>The <systemitem class="Constant">TT_ARGn_VALUE</systemitem> field is
  458. optional for <systemitem class="Constant">TT_MSG</systemitem> actions. If
  459. there is no corresponding <systemitem class="Constant">TT_ARGn_MODE</systemitem>
  460. field, the <systemitem class="Constant">TT_ARGn_VALUE</systemitem> field is
  461. ignored. If there is a <systemitem class="Constant">TT_ARGn_MODE</systemitem>
  462. field, the <systemitem class="Constant">TT_ARGn_VALUE</systemitem> field specifies
  463. the value of the <symbol role="Variable">n</symbol>th ToolTalk message argument,
  464. where <symbol role="Variable">n</symbol> is zero for the first message argument.
  465. If there is a <systemitem class="Constant">TT_ARGn_MODE</systemitem> field
  466. with no corresponding <systemitem class="Constant">TT_ARGn_VALUE</systemitem>
  467. field, the value of the <symbol role="Variable">n</symbol>th ToolTalk message
  468. argument is set to <systemitem class="Constant">NULL</systemitem>.</para>
  469. <para>The value of the <systemitem class="Constant">TT_ARGn_VALUE</systemitem>
  470. field must be a single string or action argument. Keywords that reference
  471. a single action argument are evaluated in the <systemitem class="Constant">TT_ARGn_VALUE</systemitem> field, however %Args% is not allowed as it references
  472. multiple action arguments. There is no default value for the <systemitem class="Constant">TT_ARGn_VALUE</systemitem> field.</para>
  473. </refsect2>
  474. <refsect2>
  475. <title>TT_ARGn_VTYPE Field</title>
  476. <para>The <systemitem class="Constant">TT_ARGn_VTYPE</systemitem> field is
  477. required to accompany any <systemitem class="Constant">TT_ARGn_MODE</systemitem>
  478. fields in <systemitem class="Constant">TT_MSG</systemitem> actions. This field
  479. specifies the value of the ToolTalk vtype attribute of the <symbol role="Variable">n</symbol>th message argument, where <symbol role="Variable">n</symbol> is
  480. zero for the first message argument. If this field references an argument
  481. keyword, the <emphasis>MEDIA</emphasis> attribute of the specified argument
  482. is used. If the <emphasis>MEDIA</emphasis> attribute is not defined, the <systemitem class="Constant">DATA_ATTRIBUTE</systemitem> name of the data type is used.
  483. </para>
  484. <para>Keywords are evaluated in the <systemitem class="Constant">TT_ARGn_VTYPE</systemitem> field. There is no default value for the <systemitem class="Constant">TT_ARGn_VTYPE</systemitem> field.</para>
  485. </refsect2>
  486. <refsect2>
  487. <title>TT_CLASS Field</title>
  488. <para>The <systemitem class="Constant">TT_CLASS</systemitem> field is required
  489. for <systemitem class="Constant">TT_MSG</systemitem> actions. This field specifies
  490. the value of the ToolTalk class message field. The valid values for this field
  491. are:</para>
  492. <variablelist>
  493. <varlistentry><term>TT_NOTICE</term>
  494. <listitem>
  495. <para>The action defines a ToolTalk notification message.</para>
  496. </listitem>
  497. </varlistentry>
  498. <varlistentry><term>TT_REQUEST</term>
  499. <listitem>
  500. <para>The action defines a ToolTalk request message.</para>
  501. </listitem>
  502. </varlistentry>
  503. </variablelist>
  504. <para>Keywords are not evaluated in the <systemitem class="Constant">TT_CLASS</systemitem> field. There is no default value for the <systemitem class="Constant">TT_CLASS</systemitem> field.</para>
  505. </refsect2>
  506. <refsect2>
  507. <title>TT_FILE Field</title>
  508. <para>The <systemitem class="Constant">TT_FILE</systemitem> field is optional
  509. for <systemitem class="Constant">TT_MSG</systemitem> actions. This field specifies
  510. the value of the ToolTalk file message field. The value of this field must
  511. be a single file name and can either be a specific file name (for example, <Filename>/tmp/foo</Filename>) or an argument keyword (for example, %Arg_<emphasis>1</emphasis>%). %Args% is not allowed because it references multiple action
  512. arguments. If an argument keyword is specified and the corresponding argument
  513. is not a file (that is, it is a buffer), the action invocation fails.</para>
  514. <para>Keywords are evaluated in the <systemitem class="Constant">TT_FILE</systemitem>
  515. field. There is no default value for the <systemitem class="Constant">TT_FILE</systemitem> field; if it is not set, the file attribute of the ToolTalk
  516. message is set to <systemitem class="Constant">NULL</systemitem>.</para>
  517. </refsect2>
  518. <refsect2>
  519. <title>TT_OPERATION Field</title>
  520. <para>The <systemitem class="Constant">TT_OPERATION</systemitem> field is
  521. required for <systemitem class="Constant">TT_MSG</systemitem> actions. This
  522. field specifies the value of the ToolTalk operation message field. Typical
  523. values are operations such as <symbol role="Message">Display</symbol> or
  524. <symbol role="Message">Edit</symbol> that are defined by the Media Exchange Message
  525. Set.</para>
  526. <para>Keywords are not evaluated in the <systemitem class="Constant">TT_OPERATION</systemitem> field. There is no default value for the <systemitem class="Constant">TT_OPERATION</systemitem> field.</para>
  527. </refsect2>
  528. <refsect2>
  529. <title>TT_SCOPE Field</title>
  530. <para>The <systemitem class="Constant">TT_SCOPE</systemitem> field is required
  531. for <systemitem class="Constant">TT_MSG</systemitem> actions. This field specifies
  532. the value of the ToolTalk scope message field. (See <filename role="Header">Tt/tt_c.h</filename> for a description of these values.) The valid values
  533. for this field are: <systemitem class="Constant">TT_BOTH</systemitem>, <systemitem class="Constant">TT_FILE</systemitem>, <systemitem class="Constant">TT_FILE_IN_SESSION</systemitem> and <systemitem class="Constant">TT_SESSION</systemitem>.</para>
  534. <para>Keywords are not evaluated in the <systemitem class="Constant">TT_SCOPE</systemitem> field. There is no default value for the <systemitem class="Constant">TT_SCOPE</systemitem> field.</para>
  535. </refsect2>
  536. <refsect2>
  537. <title>TYPE Field</title>
  538. <para>The <systemitem class="Constant">TYPE</systemitem> field is optional
  539. for <systemitem class="Constant">COMMAND</systemitem> actions and required
  540. for <systemitem class="Constant">MAP</systemitem> or <systemitem class="Constant">TT_MSG</systemitem> actions. This field specifies the type of behavior defined
  541. by the action. Valid values for this field are:</para>
  542. <variablelist>
  543. <varlistentry><term>COMMAND</term>
  544. <listitem>
  545. <para>The action invokes a command.</para>
  546. </listitem>
  547. </varlistentry>
  548. <varlistentry><term>MAP</term>
  549. <listitem>
  550. <para>The action specifies a different action name to invoke in place of the
  551. current action.</para>
  552. </listitem>
  553. </varlistentry>
  554. <varlistentry><term>TT_MSG</term>
  555. <listitem>
  556. <para>The action defines a ToolTalk message to be sent.</para>
  557. </listitem>
  558. </varlistentry>
  559. </variablelist>
  560. <para>Keywords are not evaluated in the <systemitem class="Constant">TYPE</systemitem> field. The default value of the <systemitem class="Constant">TYPE</systemitem> field is <systemitem class="Constant">COMMAND</systemitem>.
  561. </para>
  562. </refsect2>
  563. <refsect2>
  564. <title>WINDOW_TYPE Field</title>
  565. <para>The <systemitem class="Constant">WINDOW_TYPE</systemitem> field is optional
  566. for <systemitem class="Constant">COMMAND</systemitem> actions. This field
  567. specifies the type of windowing support the execution string requires. Valid
  568. values for this field are:</para>
  569. <variablelist>
  570. <varlistentry><term>NO_STDIO</term>
  571. <listitem>
  572. <para>No windowing support is required. This value is appropriate for execution
  573. strings that have no output or are X Windows applications.</para>
  574. </listitem>
  575. </varlistentry>
  576. <varlistentry><term>PERM_TERMINAL</term>
  577. <listitem>
  578. <para>The execution string requires a terminal window. When the execution
  579. string exits, the terminal window is left open until the user explicitly closes
  580. it. This value is appropriate for applications that write their output to
  581. standard output and then terminate, such as <command>ls</command>(1).</para>
  582. </listitem>
  583. </varlistentry>
  584. <varlistentry><term>TERMINAL</term>
  585. <listitem>
  586. <para>The execution string requires a terminal window. When the execution
  587. string exits, the terminal window is closed. If the execution string exits
  588. ``quickly'' (see the description of the <literal>waitTime</literal> resource),
  589. the terminal window is left open to allow the user to view any error messages
  590. that were written to standard output or standard error. This value is appropriate
  591. for full-screen terminal applications such as the <command>vi</command>(1) editor.
  592. </para>
  593. </listitem>
  594. </varlistentry>
  595. </variablelist>
  596. <para>Keywords are not evaluated in the <systemitem class="Constant">WINDOW_TYPE</systemitem> field. The default value of the <systemitem class="Constant">WINDOW_TYPE</systemitem> field is <systemitem class="Constant">PERM_TERMINAL</systemitem>.</para>
  597. </refsect2>
  598. </refsect1>
  599. <refsect1>
  600. <title>RESOURCES</title>
  601. <para>The following resources are available to control the behavior of actions.
  602. These resources must be set for the application that is invoking the action.
  603. They can be set for all applications that invoke actions by omitting the application
  604. name or class name.</para>
  605. <informaltable remap="center" orient="port">
  606. <tgroup cols="4" colsep="0" rowsep="0">
  607. <?PubTbl tgroup dispwid="6.19in">
  608. <colspec align="left" colname="col1" colwidth="2.00in">
  609. <colspec align="left" colwidth="2.01in">
  610. <colspec align="left" colwidth="0.94in">
  611. <colspec align="left" colname="col4" colwidth="2.80in">
  612. <spanspec nameend="col4" namest="col1" spanname="1to4">
  613. <tbody>
  614. <row>
  615. <entry align="left" spanname="1to4" valign="top"><literal>X11 Resources That
  616. Modify Action Behavior</literal></entry></row>
  617. <row>
  618. <entry align="left" valign="top"><literal>Name</literal></entry>
  619. <entry align="left" valign="top"><literal>Class</literal></entry>
  620. <entry align="left" valign="top"><literal>Type</literal></entry>
  621. <entry align="left" valign="top"><literal>Default</literal></entry></row>
  622. <row>
  623. <entry align="left" valign="top"><literal>actionIcon</literal></entry>
  624. <entry align="left" valign="top"><literal>ActionIcon</literal></entry>
  625. <entry align="left" valign="top"><literal>string</literal></entry>
  626. <entry align="left" valign="top">``Dtactn''</entry></row>
  627. <row>
  628. <entry align="left" valign="top"><literal>dtEnvMapForRemote</literal></entry>
  629. <entry align="left" valign="top"><literal>DtEnvMapForRemote</literal></entry>
  630. <entry align="left" valign="top"><literal>string</literal></entry>
  631. <entry align="left" valign="top">``DTAPPSEARCHPATH:DTHELPSEARCHPATH:DTDATABASESEARCHPATH:XMICONSEARCHPATH:XMICONBMSEARCHPATH''</entry></row>
  632. <row>
  633. <entry align="left" valign="top"><literal>dtexecPath</literal></entry>
  634. <entry align="left" valign="top"><literal>DtexecPath</literal></entry>
  635. <entry align="left" valign="top"><literal>string</literal></entry>
  636. <entry align="left" valign="top">``/usr/dt/bin/dtexec''</entry></row>
  637. <row>
  638. <entry align="left" valign="top"><literal>dtTmpDir</literal></entry>
  639. <entry align="left" valign="top"><literal>DtTempDir</literal></entry>
  640. <entry align="left" valign="top"><literal>string</literal></entry>
  641. <entry align="left" valign="top">``$HOME/.dt/tmp''</entry></row>
  642. <row>
  643. <entry align="left" valign="top"><literal>executionHostLogging</literal></entry>
  644. <entry align="left" valign="top"><literal>ExecutionHostLogging</literal></entry>
  645. <entry align="left" valign="top"><literal>string</literal></entry>
  646. <entry align="left" valign="top">``False''</entry></row>
  647. <row>
  648. <entry align="left" valign="top"><literal>executionHosts</literal></entry>
  649. <entry align="left" valign="top"><literal>ExecutionHosts</literal></entry>
  650. <entry align="left" valign="top"><literal>string</literal></entry>
  651. <entry align="left" valign="top">``%DatabaseHost%, %LocalHost%''</entry></row>
  652. <row>
  653. <entry align="left" valign="top"><literal>localTerminal</literal></entry>
  654. <entry align="left" valign="top"><literal>LocalTerminal</literal></entry>
  655. <entry align="left" valign="top"><literal>string</literal></entry>
  656. <entry align="left" valign="top">``dtterm''</entry></row>
  657. <row>
  658. <entry align="left" valign="top"><literal>remoteTerminals</literal></entry>
  659. <entry align="left" valign="top"><literal>RemoteTerminals</literal></entry>
  660. <entry align="left" valign="top"><literal>string</literal></entry>
  661. <entry align="left" valign="top">None</entry></row>
  662. <row>
  663. <entry align="left" valign="top"><literal>waitTime</literal></entry>
  664. <entry align="left" valign="top"><literal>WaitTime</literal></entry>
  665. <entry align="left" valign="top"><literal>number</literal></entry>
  666. <entry align="left" valign="top">3</entry></row></tbody></tgroup></informaltable>
  667. <variablelist>
  668. <varlistentry><term><literal>actionIcon</literal></term>
  669. <listitem>
  670. <para>Specifies the default value of the <systemitem class="Constant">ICON</systemitem> field for actions that do not define the field. The default
  671. value of this resource is <literal>Dtactn</literal>.</para>
  672. </listitem>
  673. </varlistentry>
  674. <varlistentry><term><literal>dtEnvMapForRemote</literal></term>
  675. <listitem>
  676. <para>Specifies a colon-separated list of environment variables names. Each
  677. variable contains a colon-separated list of pathnames to be mapped for remote
  678. actions (see &cdeman.tt.file.netfile; and &cdeman.tt.netfile.file;</para>
  679. <para>Only environment variables in the user's current environment (see <emphasis>environ</emphasis>(5)) are mapped. Supplemental environment variables such
  680. as those added by &cdeman.dtspcdenv;, for example, are not
  681. mapped.</para>
  682. <para>If a pathname contains substitution characters, only the portion of
  683. the path up to the first percent character is mapped, with the remaining portion
  684. appended to the resulting mapped portion. For example, if <systemitem class="EnvironVar">NLSPATH</systemitem> is set to <literal>/system/nlslib/%L/%N.cat</literal>,
  685. it maps to <literal>/net/host/system/nlslib/%L/%N.cat</literal>.</para>
  686. </listitem>
  687. </varlistentry>
  688. <varlistentry><term><literal>dtexecPath</literal></term>
  689. <listitem>
  690. <para>Specifies the location of the &cdeman.dtexec; command that
  691. is used for terminal-based actions. The default value is <Filename>/usr/dt/bin/dtexec</Filename>.</para>
  692. </listitem>
  693. </varlistentry>
  694. <varlistentry><term><literal>dtTmpDir</literal></term>
  695. <listitem>
  696. <para>Specifies the full pathname of the directory to be used for holding
  697. temporary files created during action invocation. The directory must be visible
  698. to remote hosts used for action execution.</para>
  699. </listitem>
  700. </varlistentry>
  701. <varlistentry><term><literal>executionHostLogging</literal></term>
  702. <listitem>
  703. <para>Turns on and off detailed logging to the user's <Filename>$HOME/.dt/errorlog</Filename> of action invocation events. The default value is False, which
  704. disables logging. Logging is enabled if this resource is set to True.</para>
  705. </listitem>
  706. </varlistentry>
  707. <varlistentry><term><literal>executionHosts</literal></term>
  708. <listitem>
  709. <para>Specifies the default value of the <systemitem class="Constant">EXEC_HOST</systemitem> field for <systemitem class="Constant">COMMAND</systemitem>
  710. actions that do not define the field. The default value is <literal>%DatabaseHost%,%LocalHost%</literal>.</para>
  711. </listitem>
  712. </varlistentry>
  713. <varlistentry><term><literal>localTerminal</literal></term>
  714. <listitem>
  715. <para>Specifies an alternative terminal emulator for terminal-based actions
  716. that execute locally. Any terminal emulator specified by this resource must
  717. support the <literal>&minus;title</literal> and <literal>&minus;e</literal>
  718. options as described in &cdeman.dtterm;. The default value is &cdeman.dtterm;.</para>
  719. </listitem>
  720. </varlistentry>
  721. <varlistentry><term><literal>remoteTerminals</literal></term>
  722. <listitem>
  723. <para>Specifies the terminal emulator to use for terminal-based actions that
  724. execute on the named system. The value of this resource is a comma-separated
  725. list of the form <symbol role="Variable">host</symbol>:<emphasis>terminal-path</emphasis> where <emphasis>terminal-path</emphasis> is the terminal emulator
  726. used when invoking terminal-based actions on <symbol role="Variable">host</symbol>
  727. host. The default terminal emulator used for any host not specified
  728. by this resource is the emulator specified by the <systemitem class="Constant">localTerminal</systemitem> resource.</para>
  729. </listitem>
  730. </varlistentry>
  731. <varlistentry><term><literal>waitTime</literal></term>
  732. <listitem>
  733. <para>Specifies the time threshold used for <systemitem class="Constant">COMMAND</systemitem> actions that specify <systemitem class="Constant">WINDOW_TYPE</systemitem> <systemitem class="Constant">TERMINAL</systemitem>. If the command
  734. exits in less than <emphasis>waitTime</emphasis> seconds, the terminal window
  735. is left open. The default value is 3.</para>
  736. </listitem>
  737. </varlistentry>
  738. </variablelist>
  739. </refsect1>
  740. <refsect1>
  741. <title>EXAMPLES</title>
  742. <para>The following action is defined to pipe its argument through the <command>pr</command>(1) and <command>lp</command>(1) commands:</para>
  743. <informalexample remap="indent">
  744. <programlisting>ACTION PrintText
  745. {
  746. ICON printer
  747. DESCRIPTION Paginate and print a text file to the \
  748. default printer.
  749. ARG_TYPE Text
  750. TYPE COMMAND
  751. EXEC_STRING sh &minus;c 'pr %Arg_1"File to print:"% | lp'
  752. WINDOW_TYPE NO_STDIO
  753. }</programlisting>
  754. </informalexample>
  755. <para>The following action defines that <emphasis>Open</emphasis> on Text
  756. files use the EditText action:</para>
  757. <informalexample remap="indent">
  758. <programlisting>ACTION Open
  759. {
  760. ARG_TYPE Text
  761. TYPE MAP
  762. MAP_ACTION EditText
  763. }</programlisting>
  764. </informalexample>
  765. <para>The following action is defined to send the ToolTalk Display request
  766. message for non-writable objects:</para>
  767. <informalexample remap="indent">
  768. <programlisting>ACTION Display
  769. {
  770. ARG_CLASS BUFFER
  771. ARG_MODE !w
  772. TYPE TT_MSG
  773. TT_CLASS TT_REQUEST
  774. TT_SCOPE TT_SESSION
  775. TT_OPERATION Display
  776. TT_ARG0_MODE TT_IN
  777. TT_ARG0_VTYPE %Arg_1%
  778. TT_ARG0_VALUE %Arg_1%
  779. }</programlisting>
  780. </informalexample>
  781. </refsect1>
  782. <refsect1>
  783. <title>APPLICATION USAGE</title>
  784. <para>Errors encountered when loading database files are written to the user's <Filename>$HOME/.dt/errorlog</Filename>. Errors encountered in the value of an action
  785. field cause the field to be rejected. If the field is a required field, the
  786. entire action definition is rejected. Errors encountered when an action is
  787. invoked cause an error dialog to be displayed to the user.</para>
  788. </refsect1>
  789. <refsect1>
  790. <title>SEE ALSO</title>
  791. <para><filename role="Header">Tt/tt_c.h,</filename> &cdeman.dtdtfile;, &cdeman.dtdtsfile;, &cdeman.DtActionInvoke;, &cdeman.tt.file.netfile;, &cdeman.tt.netfile.file;, &cdeman.dtterm;.
  792. </para>
  793. </refsect1>
  794. </refentry>
  795. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 01:31:55-->
  796. <?Pub *0000075778>