shithub: rc

Download patch

ref: b150102e758882d02bec75f08b0b2ccd03ebf543
parent: f7e9f4873a050552f9d197269cb028f78f8f20d7
author: qwx <qwx@sciops.net>
date: Tue Mar 29 01:48:42 EDT 2022

sizes: already reevaluate sizes and adjust sam/vt placement

--- a/bin/sizes
+++ b/bin/sizes
@@ -1,11 +1,9 @@
 #!/bin/rc
-if(test -f /tmp/sizes.$sysname)
-	exit
 screensize=`{echo $vgasize | sed 's/x/ /g'}
 #screensize=`{file /dev/screen | sed 's/.*size ([^x]+)x([^x]+)/\1 \2/'}
 # general placements
 briorect=(0 0 $screensize(1) `{echo $screensize(2) - 16 | pc -n})
-bsamrect=(0 0 $briorect(3) `{echo $briorect(4) - 64 | pc -n})
+bsamrect=(0 32 $briorect(3) $briorect(4))
 bcmdrect=( \
 	0 \
 	`{echo $bsamrect(4) - $bsamrect(4) / 3 | pc -n} \
@@ -80,6 +78,12 @@
 	1320 \
 	1064 \
 )
+vtrect=( \
+	128 \
+	0 \
+	800 \
+	$briorect(4) \
+)
 
 cat <<! >/tmp/sizes.$sysname
 screensize=($screensize)
@@ -97,4 +101,5 @@
 mailrect=($mailrect)
 vncrect=($vncrect)
 ffvncrect=($ffvncrect)
+vtrect=($vtrect)
 !