ref: 1631ca601fc896c41dde746e34d18654a6a70d73
parent: 004f5972282853f1d44542c07ed90e8b9ed02841
parent: 3b5a50f3bf1570e2b1ee329be64762cf1fc8a8f0
author: glenda <[email protected]>
date: Tue Apr 12 20:45:22 EDT 2022
bring up to date with official drawterm
--- a/Make.alsa
+++ b/Make.alsa
@@ -6,7 +6,7 @@
RANLIB=ranlib
X11=/usr/X11R6
CC=gcc
-CFLAGS=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2
+CFLAGS=-Wall -Wno-missing-braces -Wno-parentheses -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2
O=o
OS=posix
GUI=x11
--- a/Make.unix
+++ b/Make.unix
@@ -6,7 +6,7 @@
RANLIB=ranlib
X11=/usr/X11R6
CC=gcc
-CFLAGS=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2
+CFLAGS=-Wall -Wno-missing-braces -Wno-parentheses -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2
O=o
OS=posix
GUI=x11
--- a/kern/devcmd.c
+++ b/kern/devcmd.c
@@ -570,7 +570,7 @@
error(Eperm);
if(!emptystr(d->uid))
kstrdup(&cv->owner, d->uid);
- if(d->mode != ~0UL)
+ if(d->mode != (ulong)~0UL)
cv->perm = d->mode & 0777;
poperror();
free(d);
--- 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';