shithub: drawterm

Download patch

ref: fa7529962867e6d1025e1666fed3afb018bfa2c3
parent: b74913235f3bd78b33f3ce37c094f4d9e9392676
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Apr 3 19:24:12 EDT 2016

devkbd: return multiple messages per /dev/kbd read (helps with high latency links)

--- a/kern/devkbd.c
+++ b/kern/devkbd.c
@@ -39,7 +39,7 @@
 static void
 kbdinit(void)
 {
-	keyq = qopen(4*1024, 0, 0, 0);
+	keyq = qopen(4*1024, Qcoalesce, 0, 0);
 	if(keyq == nil)
 		panic("kbdinit");
 	qnoblock(keyq, 1);