shithub: rc

Download patch

ref: 047477cdd9442f930aba6bcf7f19b92f2b58a8db
parent: b6f2ee6071be8b989bc2ceed52e0623a56145931
author: qwx <qwx@sciops.net>
date: Wed Nov 11 23:51:43 EST 2020

v: use for unix and plan9 both

--- a/v
+++ b/v
@@ -1,3 +1,12 @@
 #!/bin/rc
 rfork n
-sshnet tcp!$1!17060 && vncv -l 8859-1 -e hextile $*
+if(~ $#* 0){
+	echo usage: $0 sys [vncvopts..]
+	exit usage
+}
+switch($1){
+case aib
+case *
+	sshnet tcp!$1!x || exit
+}
+vncv -l 8859-1 -e hextile $*