Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _vnc



It seems that vnc display numbers can be greater than 9. Also Debian
installs the vncviewer as xvncviewer and we can now do a better job of
completing the arguments to the -encodings parameter.

I'll apply this to both branches because it is a bug fix.

Oliver

Index: Completion/X/Command/_vnc
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/X/Command/_vnc,v
retrieving revision 1.2
diff -u -r1.2 _vnc
--- Completion/X/Command/_vnc   2001/05/08 11:48:14     1.2
+++ Completion/X/Command/_vnc   2001/06/28 11:05:09
@@ -1,7 +1,7 @@
-#compdef vncserver vncviewer
+#compdef vncserver vncviewer xvncviewer
 
 local displays args
-displays=( ~/.vnc/$HOST:?.pid(N:r:t:s/$HOST//) )
+displays=( ~/.vnc/$HOST:<->.pid(N:r:t:s/$HOST//) )
 displays=( \\${^displays} ) 
 
 case $service in
@@ -19,10 +19,9 @@
       - help \
        '-help'
   ;;
-  vncviewer) 
-    # should allow list for -encodings
+  *vncviewer) 
     _xt_arguments -shared -viewonly -fullscreen -bgr233 -owncmap -truecolour \
-      '-encodings:encodings:(copyrect hextile corre rre raw)' \
+      '-encodings:encodings:_values -s " " copyrect hextile corre rre raw' \
       '-depth:depth' \
       '-passwd:file:_files' \
       '(1)-listen:display number' \



Messages sorted by: Reverse Date, Date, Thread, Author