9fans archive / 1996 / 12 / 18 / prev next
From: miller@ham... miller@ham...
Subject: 3-button mice and clearing dtr
Date: Tue, 3 Dec 1996 12:32:41 GMT
An even simpler way to initialise a dtr-switchable mouse is to replace the
aux/mouse command in /bin/termrc with
{ echo serial$mouseport >'#b/mousectl'; echo d0 } >/dev/eia$mouseport^ctl
The bad news is that this causes the kernel to panic. (Don't try this at home.)
The good news is that the panic can be averted by a one-line change to
uartspecial() in /sys/src/9/pc/devuart.c:
602c602
< up->oq = oq;
---
> if (oq) up->oq = oq;
-- Richard Miller