about summary refs log tree commit diff
path: root/Completion/X/_xt_arguments
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-25 01:59:07 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-25 01:59:07 +0000
commite6cac1e4570068ce3faaa5e1658ecc272ad7fa86 (patch)
tree15b33d8b7fe51849eca41175d23bdbab9528901d /Completion/X/_xt_arguments
parentaf7d36e0702643e6a3a476baf475f8b330db5146 (diff)
downloadzsh-e6cac1e4570068ce3faaa5e1658ecc272ad7fa86.tar.gz
zsh-e6cac1e4570068ce3faaa5e1658ecc272ad7fa86.tar.xz
zsh-e6cac1e4570068ce3faaa5e1658ecc272ad7fa86.zip
zsh-workers/7477
Diffstat (limited to 'Completion/X/_xt_arguments')
-rw-r--r--Completion/X/_xt_arguments45
1 files changed, 45 insertions, 0 deletions
diff --git a/Completion/X/_xt_arguments b/Completion/X/_xt_arguments
new file mode 100644
index 000000000..02f11e226
--- /dev/null
+++ b/Completion/X/_xt_arguments
@@ -0,0 +1,45 @@
+#autoload
+
+# How to convert XrmOptionDescRec:
+
+# XrmOptionDescRec optionDescList[] = {
+#   ...
+#   {option, specifier, argKind, value},
+#   ...
+# };
+
+#  argKind		argument for _xt_arguments
+#  XrmoptionNoArg	option
+#  XrmoptionIsArg	option
+#  XrmoptionStickyArg	option-:message:action
+#  XrmoptionSepArg	option:message:action
+#  XrmoptionResArg	option:message:_x_resource
+#  XrmoptionSkipArg	option:message:action
+#  XrmoptionSkipLine	option:*::message:action
+#  XrmoptionSkipNArgs	option:message[1]:action[1]:...:message[value]:action[value]
+
+# cf. XrmParseCommand(3X11), X11R6.4/xc/lib/Xt/Initialize.c, X(5)
+
+_arguments \
+  '+rv' '-rv' '-reverse' \
+  '+synchronous' '-synchronous' \
+  '-background:background color:_colors' \
+  '-background:background color:_colors' \
+  '-bd:border color:_colors' \
+  '-bg:background color:_colors' \
+  '-bordercolor:border color:_colors' \
+  '-borderwidth:border width:_x_borderwidth' \
+  '-bw:border width:_x_borderwidth' \
+  '-display:display:_x_display' \
+  '-fg:foreground color:_colors' \
+  '-fn:font:_x_font' \
+  '-foreground:foreground color:_colors' \
+  '-geometry:geometry:_x_geometry' \
+  '-iconic' \
+  '-name:name:_x_name' \
+  '-selectionTimeout:selection timeout (milliseconds):_x_selection_timeout' \
+  '-title:title:_x_title' \
+  '-xnllanguage:locale:_x_locale' \
+  '-xrm:resource:_x_resource' \
+  '-xtsessionID:session ID:_xt_session_id' \
+  "$@"