Re: [9fans] usb/kb: Home key produces "7"

2014-04-04 Thread erik quanstrom
On Fri Apr 4 05:28:30 EDT 2014, yari...@gmail.com wrote: > finally got it complete: /n/sources/patch/usbkb-map > you might want to look at the atom version. /n/sources/patch/usbkbrptnum it also handles the kbd led so you know the state of things, and odd japanese scan codes. i also noticed thi

Re: [9fans] usb/kb: Home key produces "7"

2014-04-04 Thread Yaroslav
finally got it complete: /n/sources/patch/usbkb-map 2013-08-08 19:26 GMT+03:00 Yaroslav : > It gets even weirder: another hack to enable F11/F12. > > /n/dump/2013/0808/sys/src/cmd/usb/kb/kb.c:473,479 - > /sys/src/cmd/usb/kb/kb.c:473,479 > } > > > - #define hasesc1(sc) (((sc) >= 0x47) || ((sc) ==

[9fans] usb/kb parsing uninitialized memory

2014-03-28 Thread erik quanstrom
i found this playing with one of those usb hid panels. just tested with the busted apple 2005 keyboard and the newer flat apple keyboard. both worked. (the 2005 keyboard doesn't work on some h/w still due to the hub controller.) i'm going to roll this into 9atom today. unfortunately, since the

Re: [9fans] usb/kb

2014-03-26 Thread erik quanstrom
On Wed Mar 26 21:11:45 EDT 2014, kokam...@hera.eonet.ne.jp wrote: > > ; g sanembmsg|grep pop > > mbox.c:490: sanembmsg(mb, m); /* fails with pop but i want this > > debugging for now */ > > mbox.c:521: sanembmsg(mb, m); /* fails with pop but i want this > > debugging for now */ > > mb

Re: [9fans] usb/kb

2014-03-26 Thread kokamoto
> ; g sanembmsg|grep pop > mbox.c:490: sanembmsg(mb, m); /* fails with pop but i want this debugging for > now */ > mbox.c:521: sanembmsg(mb, m); /* fails with pop but i want this debugging for > now */ > mbox.c:548: sanembmsg(mb, m); /* fails with pop but i want this debugging for > now */ Wow

Re: [9fans] usb/kb

2014-03-26 Thread erik quanstrom
On Tue Mar 25 22:22:23 EDT 2014, kokam...@hera.eonet.ne.jp wrote: > The upas (your nupas) has problem with using POP3 > mail reading. > > In your source, there is a comment regarding this. > Yes, I met the same problem as your comment in > sanembmsg() in mbox.c. > > Before trying this myself, I s

Re: [9fans] usb/kb

2014-03-25 Thread 岡本健二
The upas (your nupas) has problem with using POP3 mail reading. In your source, there is a comment regarding this. Yes, I met the same problem as your comment in sanembmsg() in mbox.c. Before trying this myself, I suppose you have some suggestion on this point. Where I should try first? Kenji

[9fans] usb/kb

2014-03-20 Thread erik quanstrom
i've made some improvements to 9atom's usb/kb. they're a little extensive, so i thought i'd request some feedback before i start sending patches to sources. the code is all in atom. the reason i embarked on this was because the keypad wouldn't work, and kb didn't play nice with japanese keyboard

[9fans] usb/kb fault ... and fix

2013-09-21 Thread erik quanstrom
i had a fault in usb/kb this evening, and have a proposed fix. it also seemed like a good time to address the goto soup in repeatproc. by moving the timer into its own proc, it was possible to turn repeatproc into a case statement. the downside is there's a tiny bit of busy work going on between t

Re: [9fans] usb/kb: Home key produces "7"

2013-08-08 Thread Yaroslav
It gets even weirder: another hack to enable F11/F12. /n/dump/2013/0808/sys/src/cmd/usb/kb/kb.c:473,479 - /sys/src/cmd/usb/kb/kb.c:473,479 } - #define hasesc1(sc) (((sc) >= 0x47) || ((sc) == 0x38)) + #define hasesc1(sc) (((sc) >= 0x47 && (sc) < 0x57) || ((sc) > 0x58) || ((sc) == 0x38)) stat

Re: [9fans] usb/kb: Home key produces "7"

2013-03-01 Thread Yaroslav
> thanks. that one had been bugging me. looks like it works here. > /n/sources/patch/usb-khome

Re: [9fans] usb/kb: Home key produces "7"

2013-03-01 Thread erik quanstrom
On Fri Mar 1 06:21:01 EST 2013, yari...@gmail.com wrote: > The "Home" key produces rune "7" on certain USB keyboard. The fix is: > > /n/sources/plan9/sys/src/cmd/usb/kb/kb.c:473,479 - > /sys/src/cmd/usb/kb/kb.c:473,479 > } > > > - #define hasesc1(sc) (((sc) > 0x47) || ((sc) == 0x38)) > +

[9fans] usb/kb: Home key produces "7"

2013-03-01 Thread yaroslav
The "Home" key produces rune "7" on certain USB keyboard. The fix is: /n/sources/plan9/sys/src/cmd/usb/kb/kb.c:473,479 - /sys/src/cmd/usb/kb/kb.c:473,479 } - #define hasesc1(sc) (((sc) > 0x47) || ((sc) == 0x38)) + #define hasesc1(sc) (((sc) >= 0x47) || ((sc) == 0x38)) static void