shithub: drawterm

Download patch

ref: fdad581ba3c28a86fe3953ad811d1273e03b09ae
parent: 1361c96b22e5d09a99d4fbfac1df1cb8cf23551d
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Sat Apr 2 07:22:50 EDT 2022

devdraw: printmesg: implement "z" fmt arg (safe since printmesg is disabled)

--- a/kern/devdraw.c
+++ b/kern/devdraw.c
@@ -1395,6 +1395,10 @@
 			q += sprint(q, " %.4ux", BGSHORT(a));
 			a += 2;
 			break;
+		case 'z':
+			q += sprint(q, " %.*q", (int)*a, (char*)(a+1));
+			a += 1 + *a;
+			break;
 		}
 	}
 	*q++ = '\n';