code: drawterm

Download patch

ref: a583f0d9499d005adb393e71a5f27274bfc7ed9d
parent: c89f394017d3cd8f0755e7a569d9dd49e4840f1e
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Mar 9 22:09:50 EST 2016

pass zeroed buffer in fversion syscall instead of 9P2000 for iounit negotion

--- a/cpu.c
+++ b/cpu.c
@@ -148,7 +148,7 @@
 rcpu(char *host)
 {
 	static char script[] = 
-"syscall fversion 0 65536 9P2000 7 >/dev/null >[2=1]\n"
+"syscall fversion 0 65536 buf 256 >/dev/null >[2=1]\n"
 "mount -nc /fd/0 /mnt/term || exit\n"
 "bind -q /mnt/term/dev/cons /dev/cons\n"
 "if(test -r /mnt/term/dev/kbd){\n"