shithub: rc

Download patch

ref: 1d259c06594034a05bb204bff8abca2564032258
parent: 4fb04e282939c8cce08863b5be867f489c9fcd09
author: qwx <qwx@sciops.net>
date: Mon Apr 3 11:38:08 EDT 2023

kx: -b, different font, file list

--- a/bin/kx
+++ b/bin/kx
@@ -1,4 +1,4 @@
-#!/bin/rc
+#!/bin/rc -b
 rfork ne
 wdir=/n/ssh
 fn usage{
@@ -21,10 +21,15 @@
 	m=tcp!$1!17060
 . /tmp/sizes.$sysname
 
+f=()
+if(test -f $home/lib/kx){
+	f=`{cat $home/lib/kx}
+	eval 'f=('^$"f^')'
+}
 cat <<! >/tmp/work.$pid
 #!/bin/rc
 label kx.$pid
-window -r $bsamrect 'echo 4 >/env/tabstop; echo -n /lib/font/bit/fixed/unicode.6x10.font >/env/font; jam'
+window -r $bsamrect 'echo 4 >/env/tabstop; echo -n /lib/font/bit/terminus/unicode.12m.font >/env/font; jam $f'
 !
 
 cat <<! >/tmp/kx.$pid