shithub: rc

Download patch

ref: bdf09c83171dd94ce5fdb94e373d678bce374248
parent: 575f985301dfcc3d21735f51e8e517bd9ab29999
author: qwx <qwx@sciops.net>
date: Sat May 13 11:10:16 EDT 2023

work scripts: read entire script first, and some namespace fixes

--- a/bin/work/ger
+++ b/bin/work/ger
@@ -1,4 +1,4 @@
-#!/bin/rc
+#!/bin/rc -b
 rfork ne
 
 . /tmp/sizes.$sysname
--- a/bin/work/monitoring
+++ b/bin/work/monitoring
@@ -1,4 +1,4 @@
-#!/bin/rc
+#!/bin/rc -b
 rfork ne
 
 . /tmp/sizes.$sysname
--- a/bin/work/music
+++ b/bin/work/music
@@ -1,8 +1,10 @@
-#!/bin/rc
+#!/bin/rc -b
 rfork ne
 
 . /tmp/sizes.$sysname
 cd /lib/m
+#unmount /mnt/plumb
+#plumber -s plumb.$pid
 
 cat <<! >/tmp/work.$pid
 #!/bin/rc
@@ -14,3 +16,6 @@
 chmod +x /tmp/work.$pid
 bof -i /tmp/work.$pid
 rm /tmp/work.$pid
+#unmount /mnt/plumb
+#rm /srv/plumb.$pid
+exit
--- a/bin/work/proj
+++ b/bin/work/proj
@@ -1,4 +1,4 @@
-#!/bin/rc
+#!/bin/rc -b
 rfork ne
 
 . /tmp/sizes.$sysname
@@ -13,6 +13,8 @@
 cat <<! >/tmp/work.$pid
 #!/bin/rc
 label proj
+echo -n /lib/font/bit/terminus/unicode.12m.font >/env/font
+echo 4 >/env/tabstop
 window -r $bcmdrect -scroll
 #window -r 530 270 1401 1175 mothra #https://ocaml.org/learn/tutorials/
 #plumb /lib/books/doomrpg/decoding.doomrpg.pdf!8
@@ -22,7 +24,7 @@
 #plumb /lib/books/specs/igfx/hsw/intel-gfx-prm-osrc-hsw-display.pdf!171
 #plumb /lib/books/gameai/millington.artificial.intelligence.for.games.pdf
 #plumb /lib/books/maths/lengyel.mathematics.for.3d.game.programming.and.computer.graphics.pdf
-window -r $bsamrect jam $f
+window -m -r $bsamrect jam $f
 !
 chmod +x /tmp/work.$pid
 bof -i /tmp/work.$pid
--- a/bin/work/social
+++ b/bin/work/social
@@ -1,4 +1,4 @@
-#!/bin/rc
+#!/bin/rc -b
 rfork ne
 
 . /tmp/sizes.$sysname
@@ -9,8 +9,8 @@
 #!/bin/rc
 label social
 #window -r $mailrect mw
-window -r $ffvncrect v aib
-window -r $vncrect v t60p
+window -r $ffvncrect v taib
+window -r $vncrect v tx240
 !
 chmod +x /tmp/work.$pid
 bof -i /tmp/work.$pid
--- a/bin/work/stream
+++ b/bin/work/stream
@@ -1,4 +1,4 @@
-#!/bin/rc
+#!/bin/rc -b
 rfork ne
 
 . /tmp/sizes.$sysname