> I'm a newbie playing with 9front on laptop (in VirtualBox) .... https://fqa.9front.org/fqa.html
> ... and would like to try to make it work with one mouse key and modifiers > (similar to > https://github.com/rsc/plan9/commit/5375b476e0d0119bcd85517e337e99b1d7a0b7e0 > ). Keyboard scancode translation has been moved out of the kernel in 9front. The keyboard device just provides a file for the raw ps2 scancodes and (devcons #c) just provides output (for kernel prints). The driver providing the full /dev/cons (and /dev/kbd) is kbdfs(8): source: /sys/src/cmd/aux/kbdfs/ The feature where you can map a keyboard key to a mouse button and mouse button swap is accomplished by it writing to /dev/mousein and /dev/mousectl. It also can send a note to the group for [Del] key handling so that works on the initial console. > Another question - how to specify the kernel during boot (e.g. if I copy the > old one to /9fat/9pc64.orig and would like to use it in case newly compiled > one does not work)? from 9boot(8) manual: After reading the configuration, the loader will automati- cally attempt to boot the kernel that was specified by the bootfile= parameter. If there is no such parameter, any key gets pressed on the keyboard or the kernel file was not found then the loader enters the interactive boot console. so you can just press like spacebar or any other key until you see the ">" prompt, then you can type: bootfile=9pc64.bak and to boot, type: boot Note: Unless you use the efi variant, 9boot's fat code does not support long file names, so restrict your backup kernel files to 8+3 names such as 9pc64.bak or 9pc64.old. -- cinap ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T41a0e496bba0c957-M55f79244844f479ef7e554bb Delivery options: https://9fans.topicbox.com/groups/9fans/subscription