[Toybox] Request for two commands to be added to toybox please.

Rob Landley rob at landley.net
Mon Sep 9 18:35:30 PDT 2019



On 9/9/19 3:29 AM, scsijon wrote:
> You did ask for submissions for '?possibly missing?' commands!
> 
> Can I ask for these two to be considered to be added to your 'todo' list please?
> 
> showkey - which shows what's assigned to a specific pressed key (usually octal,
> but could be multi-byte hexidecimal or even a character stream on some keyboards).

Modulo x11 getting in the way (it reads this for you and passes on processed
data), and serial consoles not providing this info so it almost never coming up
anymore (you have to be at a VGA text console to run this). But I remember
wandering through the ioctls at some point...

> and
> 
> setkey (modified busybox setkeycodes) - matching showkey to allow multi-byte
> assignments under a key combination (and not just busybox's single octal, as
> with their setkeycodes).

I never used this busybox command, but again I've read the ioctls and there was
another implementation of this a long time ago I downloaded out of curiosity
years and years ago...

Ah yes, man 4 console_codes, KDSETKEYCODE from #include <linux/kd.h>

Could you send me some example usage for the test suite?

> O.T. I do miss your aborigonal, I still have a working .pet you helped me setup
> from back then. It can still be chroot'd into on our 32bit Puppies.

I plan to turn mkroot into a proper full replacement for that, I'm just juggling
too many balls. (Today I'm wrestling with shell variable expansion, which is
recursive even _before_ you add quoting into it.)

Rob


More information about the Toybox mailing list