zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _vnc
@ 2001-06-28 11:10 Oliver Kiddle
  0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2001-06-28 11:10 UTC (permalink / raw)
  To: zsh-workers

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' \


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-28 11:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-28 11:10 PATCH: _vnc Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).