Defines | |
#define | BRLAPI_TTY_DEFAULT -1 |
Functions | |
int BRLAPI_STDCALL | brlapi_enterTtyMode (int tty, const char *driver) |
int BRLAPI_STDCALL | brlapi__enterTtyMode (brlapi_handle_t *handle, int tty, const char *driver) |
int BRLAPI_STDCALL | brlapi_enterTtyModeWithPath (int *ttys, int count, const char *driver) |
int BRLAPI_STDCALL | brlapi__enterTtyModeWithPath (brlapi_handle_t *handle, int *ttys, int count, const char *driver) |
int BRLAPI_STDCALL | brlapi_leaveTtyMode (void) |
int BRLAPI_STDCALL | brlapi__leaveTtyMode (brlapi_handle_t *handle) |
int BRLAPI_STDCALL | brlapi_setFocus (int tty) |
int BRLAPI_STDCALL | brlapi__setFocus (brlapi_handle_t *handle, int tty) |
The application must also specify how braille keys will be delivered to it. Two ways are possible: key codes and commands:
|
Select the default tty. The library takes the following steps:
|
|
|
|
|
|
|
|
|
|
Ask for some tty, with some key mechanism
WINDOWPATH="$(grep "using VT number" "/var/log/Xorg.$(echo "$DISPLAY" | sed -e "s/^.*::*\([0-9]*\).*$/\1/").log" | sed -e "s/^.*using VT number \([0-9]*\).*$/\1/")" WINDOWPATH and WINDOWID should be propagated when running remote applications via ssh, for instance, along with BRLAPI_HOST and the authorization key (see SendEnv in ssh_config(5) and AcceptEnv in sshd_config(5))
|
|
Ask for some tty specified by its path in the tty tree, with some key mechanism
|
|
Stop controlling the tty
|
|
Tell the current tty to brltty This is intended for focus tellers, such as brltty, xbrlapi, screen, ... brlapi_enterTtyMode() must have been called beforehand to tell where this focus applies in the tty tree.
|