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:20 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-25 01:59:20 +0000
commit54f3a6bd29ea9ebb164a2690ae4792f0ec9290e2 (patch)
treecc31cf026806c998fafc34c961aad6ca464d6a7c /Completion/X/_xt_arguments
parent610b0ecd561ecc646142e07c479896442f688128 (diff)
downloadzsh-54f3a6bd29ea9ebb164a2690ae4792f0ec9290e2.tar.gz
zsh-54f3a6bd29ea9ebb164a2690ae4792f0ec9290e2.tar.xz
zsh-54f3a6bd29ea9ebb164a2690ae4792f0ec9290e2.zip
Initial revision
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' \
+  "$@"