diff options
author | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-05-06 01:39:25 +0000 |
---|---|---|
committer | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-05-06 01:39:25 +0000 |
commit | b99a28b92b4f6b64c8b583fce4e3bd3de39dc8ee (patch) | |
tree | 8e6c4cf08d02d25046d055c3705b7b531fc07cc0 /Completion/X/Command/_vnc | |
parent | 22fbfe532b864091c26336a6f60f5cb8b55b03c1 (diff) | |
download | zsh-b99a28b92b4f6b64c8b583fce4e3bd3de39dc8ee.tar.gz zsh-b99a28b92b4f6b64c8b583fce4e3bd3de39dc8ee.tar.xz zsh-b99a28b92b4f6b64c8b583fce4e3bd3de39dc8ee.zip |
Merge of 21351: complete for xvnc4viewer and xtightvncviewer.
Diffstat (limited to 'Completion/X/Command/_vnc')
-rw-r--r-- | Completion/X/Command/_vnc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Completion/X/Command/_vnc b/Completion/X/Command/_vnc new file mode 100644 index 000000000..347eb8ef4 --- /dev/null +++ b/Completion/X/Command/_vnc @@ -0,0 +1,31 @@ +#compdef vncserver vncviewer xvncviewer xtightvncviewer xvnc4viewer + +local displays args +displays=( ~/.vnc/$HOST:<->.pid(N:r:t:s/$HOST//) ) +displays=( \\${^displays} ) + +case $service in + vncserver) + # currently lacking Xvnc arguments + _arguments \ + - start \ + '-name:desktop name:_x_name' \ + '-geometry:geometry:(1600x1200 1280x1024 1152x864 1024x768 800x600 640x480)' \ + '-depth:pixel depth:(8 16 24 32)' \ + '-pixelformat:pixel format' \ + '1:: :_guard "(|:[0-9]#)" "display number"' \ + - kill \ + "-kill:display number:($displays)" \ + - help \ + '-help' + ;; + *vncviewer) + _xt_arguments -shared -viewonly -fullscreen -bgr233 -owncmap -truecolour \ + '-encodings:encodings:_values -s " " encoding copyrect hextile corre rre raw' \ + '-depth:depth' \ + '-passwd:file:_files' \ + '(1)-listen:display number' \ + '(-listen)1::display:_x_display' + ;; +esac + |