ref: db6906ec5fd6467724ab27b578d72bc6b9e883b9
parent: bcadcdd9c392635292948dbd9183cb52abb110c6
author: sl <sl@k>
date: Fri Dec 19 18:55:55 EST 2025
vtb: use smaller font on lower res screens.
--- a/vtb
+++ b/vtb
@@ -1,5 +1,6 @@
#!/bin/rc
-# 2025-12-15T22:29:13-05:00
+# 2025-12-19T18:54:48-05:00
+rfork e
scr=(`{cat /dev/draw/new >[2]/dev/null})w=$scr(11)
h=$scr(12)
@@ -6,8 +7,10 @@
switch($h){case 2*
font=/lib/font/contrib.bit/hugevga/unicode.font
-case *
+case 14*
#font=/lib/font/bit/pelm/unicode.12.font
font=/lib/font/bit/fixed/unicode.10x20.font
+case *
+ font=/lib/font/bit/fixed/unicode.9x15.font
}
vt -2b -f $font
--
⑨