zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@u.genie.co.uk>
To: zsh-workers@sunsite.dk
Subject: PATCH: _vnc
Date: Thu, 28 Jun 2001 12:10:20 +0100	[thread overview]
Message-ID: <3B3B109C.D28E3C7C@u.genie.co.uk> (raw)

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


                 reply	other threads:[~2001-06-28 11:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B3B109C.D28E3C7C@u.genie.co.uk \
    --to=opk@u.genie.co.uk \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).