mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-11 00:51:05 +02:00
zsh-workers/7477
This commit is contained in:
parent
af7d36e070
commit
e6cac1e457
11 changed files with 76 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
||||||
#compdef xterm
|
#compdef xterm
|
||||||
|
|
||||||
_arguments \
|
_xt_arguments \
|
||||||
'-version' \
|
'-version' \
|
||||||
'-help' \
|
'-help' \
|
||||||
'-132' \
|
'-132' \
|
||||||
|
@ -16,13 +16,13 @@ _arguments \
|
||||||
'-cc:character class:' \
|
'-cc:character class:' \
|
||||||
'-cm' '+cm' \
|
'-cm' '+cm' \
|
||||||
'-cn' '+cn' \
|
'-cn' '+cn' \
|
||||||
'-cr:text cursor color:_color' \
|
'-cr:text cursor color:_colors' \
|
||||||
'-cu' '+cu' \
|
'-cu' '+cu' \
|
||||||
'-dc' '+dc' \
|
'-dc' '+dc' \
|
||||||
'-e:program: _command_names -e:*::program arguments: _normal' \
|
'-e:program: _command_names -e:*::program arguments: _normal' \
|
||||||
'-fb:bold font:' \
|
'-fb:bold font:' \
|
||||||
'-fi:icon font:' \
|
'-fi:icon font:' \
|
||||||
'-hc:background color for highlighted text:_color' \
|
'-hc:background color for highlighted text:_colors' \
|
||||||
'-hf' '+hf' \
|
'-hf' '+hf' \
|
||||||
'-ie' '+ie' \
|
'-ie' '+ie' \
|
||||||
'-im' '+im' \
|
'-im' '+im' \
|
||||||
|
@ -31,7 +31,7 @@ _arguments \
|
||||||
'-ls' '+ls' \
|
'-ls' '+ls' \
|
||||||
'-mb' '+mb' \
|
'-mb' '+mb' \
|
||||||
'-mc:multi-click threshold (milliseconds):' \
|
'-mc:multi-click threshold (milliseconds):' \
|
||||||
'-ms:pointer cursor color:_color' \
|
'-ms:pointer cursor color:_colors' \
|
||||||
'-nb:margin bell number:' \
|
'-nb:margin bell number:' \
|
||||||
'-nul' '+nul' \
|
'-nul' '+nul' \
|
||||||
'-pc' '+pc' \
|
'-pc' '+pc' \
|
||||||
|
@ -58,15 +58,3 @@ _arguments \
|
||||||
'-ziconbeep:iconbeep (percent):' \
|
'-ziconbeep:iconbeep (percent):' \
|
||||||
'-C' \
|
'-C' \
|
||||||
'-S-:pseudo-terminal and file descriptor:' \
|
'-S-:pseudo-terminal and file descriptor:' \
|
||||||
'-bd:border color:_color' \
|
|
||||||
'-bg:background color:_color' \
|
|
||||||
'-bw:border width:' \
|
|
||||||
'-display:display:_x_display' \
|
|
||||||
'-fg:foreground color:_color' \
|
|
||||||
'-fn:font:' \
|
|
||||||
'-geometry:geometry:' \
|
|
||||||
'-iconic' \
|
|
||||||
'-name:name:' \
|
|
||||||
'-rv' \
|
|
||||||
'-title:title:' \
|
|
||||||
'-xrm:resource:'
|
|
||||||
|
|
3
Completion/X/_x_borderwidth
Normal file
3
Completion/X/_x_borderwidth
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#autoload
|
||||||
|
|
||||||
|
_message 'border width'
|
3
Completion/X/_x_font
Normal file
3
Completion/X/_x_font
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#autoload
|
||||||
|
|
||||||
|
_message 'font'
|
3
Completion/X/_x_geometry
Normal file
3
Completion/X/_x_geometry
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#autoload
|
||||||
|
|
||||||
|
_message 'geometry'
|
3
Completion/X/_x_locale
Normal file
3
Completion/X/_x_locale
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#autoload
|
||||||
|
|
||||||
|
_message 'locale'
|
3
Completion/X/_x_name
Normal file
3
Completion/X/_x_name
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#autoload
|
||||||
|
|
||||||
|
_message 'name'
|
3
Completion/X/_x_resource
Normal file
3
Completion/X/_x_resource
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#autoload
|
||||||
|
|
||||||
|
_message 'resource'
|
3
Completion/X/_x_selection_timeout
Normal file
3
Completion/X/_x_selection_timeout
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#autoload
|
||||||
|
|
||||||
|
_message 'selection timeout'
|
3
Completion/X/_x_title
Normal file
3
Completion/X/_x_title
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#autoload
|
||||||
|
|
||||||
|
_message 'title'
|
45
Completion/X/_xt_arguments
Normal file
45
Completion/X/_xt_arguments
Normal file
|
@ -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' \
|
||||||
|
"$@"
|
3
Completion/X/_xt_session_id
Normal file
3
Completion/X/_xt_session_id
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#autoload
|
||||||
|
|
||||||
|
_message 'session ID'
|
Loading…
Reference in a new issue