[BRLTTY] BrlAPI Raw key code mode?

Shérab Sebastien.Hinderer at ens-lyon.org
Sun Jul 23 04:34:22 EDT 2017


Hi Mario,

Beware, you used the old address for the list.
The new address is brltty at brltty.com

Mario Lang (2017/07/23 00:12 +0200):
> Hi.
> 
> Does anyone know if Raw keycode mode of BrlAPI does still work?  Here,
> calling brlapi__readKey after brlapi__enterTtyMode with "HandyTech" as
> the driver string seems to block forever, while "" as driver string
> gives me command keys as expected.

Did it work in the past or is that your first attempt with this driver?

> I know the number of users of raw
> mode might be near to nothing, so I am sort of guessing it might have
> been broken somewhere in the past?

Actually, it seems the HandyTech driver does not support delivering raw
key codes yet. It should define the BRL_HAVE_KEY_CODES macro and
implement the brl_readKey and brl_keyToCommand methods.

What I find strange, though, is that you do not get a proper error from
BrlAPI. Normally, if you try to enter in raw keycode mode with a driver
that does not support it, you should get an oeration not supported
error, I think.

> Also, now that we have symbolic key names, I wonder, is there any
> possibility to create some sort of "hybrid" raw mode for BrlAPI, which
> would return key names and press/release status?

Samuel and I should probably think about it, indeed.

Shérab.


More information about the BRLTTY mailing list