[BRLTTY] Re: Hopefully last brlapi change
Samuel Thibault
samuel.thibault at ens-lyon.org
Sun Feb 11 11:03:15 EST 2007
Willie Walker, le Sun 11 Feb 2007 10:52:53 -0500, a écrit :
> Thanks for the heads up. I'm finally to the point where I can do this.
> From your snippet below, commands look easy to handle.
>
> How do I handle cursor routing keys?
Just the same (since cursor routing _is_ a command which just happens to
have an argument):
b.acceptKeys(brlapi.rangeType_command, [brlapi.KEY_TYPE_CMD|brlapi.KEY_CMD_ROUTE])
key = b.readKey()
k = b.expandKeyCode(key)
and then you get k["type"] == brlapi.KEY_TYPE_CMD, k["command"] ==
brlapi.KEY_CMD_ROUTE, k["argument"] == number
Samuel
More information about the BRLTTY
mailing list