shithub: gridchat

Download patch

ref: e5c7367c265358d21e2268c7e54f3340d1d3998b
parent: c5437c71ae33a1623057e1db393adb4a938c03db
author: grobe0ba <[email protected]>
date: Mon Jun 17 17:15:00 EDT 2024

mods

--- a/chat
+++ b/chat
@@ -20,7 +20,8 @@
 }
 
 fn chatstart{
-	9fs tcp!chat.9p.zone!9990 /n/chat
+	srv tcp!chat.tcp80.org!9990 chat.$pid
+	mount /srv/chat.$pid /n/chat tail:0
 
 	dims=`{read -c60 /dev/window}
 	height=`{echo $dims(5) - $dims(3) | hoc}
@@ -27,13 +28,13 @@
 	width=`{echo $dims(4) - $dims(2)| hoc}
 	hchat=`{echo $height - 200 | hoc}
 
-	mq -m /n/chatbuf
+	mq -c -m /n/chatbuf -s mq.$pid
 	cat /n/chat/chat > /n/chatbuf/chat &
-	window -m -r 0     0    $width     200 -scroll rc -c chatg
+	window -m -r 0     0    $width     100 -scroll rc -c chatg
 	window -m -r 0   100    $width  $hchat -scroll rc -c chatv
 	window -m -r 0  $hchat  $width $height -scroll rc -c chati
 }
 
 rfork ne
-rio -i 'rc -c chatstart'
+window 0,0,620,1033 rio -b -i 'rc -c chatstart'