|
ask for some tty, with some key mechanism
- Parameters:
-
| tty |
- If tty>0, application takes control of the specified tty;
- if tty==0, the library calls brlapi_getControllingTty() itself and takes control of the result.
|
| how | tells whether the application wants brlapi_readKey() to return keycodes or brltty commands: either BRLKEYCODES or BRLCOMMANDS; |
| keybinding | tells settings for bindings. This is only necessary if brlapi_readBinding() will be called; else NULL can be given. |
- Returns:
- 0 on success, -1 on error
|