brlapi_driverspecific(3)
π brlapi_driverspecific β Driver-Specific modes π
okay bestie, pull up a chair, because this is the brlapi_driverspecific(3) page from the Library Functions Manual and it's lowkey one of the most "handle with care, queen" pages in the whole BrlAPI library. we're talking Raw and Suspend Modes, the mechanism where you take the wheel and brltty politely steps aside. β¨
π NAME π
brlapi_driverspecific β Driver-Specific modes
- Raw and Suspend Modes mechanism. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
Functions
int BRLAPI_STDCALL brlapi_enterRawMode (const char *driver)
int BRLAPI_STDCALL brlapi__enterRawMode (brlapi_handle_t *handle, const char *driver)
int BRLAPI_STDCALL brlapi_leaveRawMode (void)
int BRLAPI_STDCALL brlapi__leaveRawMode (brlapi_handle_t *handle)
ssize_t BRLAPI_STDCALL brlapi_sendRaw (const void *buffer, size_t size)
ssize_t BRLAPI_STDCALL brlapi__sendRaw (brlapi_handle_t *handle, const void *buffer, size_t size)
ssize_t BRLAPI_STDCALL brlapi_recvRaw (void *buffer, size_t size)
ssize_t BRLAPI_STDCALL brlapi__recvRaw (brlapi_handle_t *handle, void *buffer, size_t size)
int BRLAPI_STDCALL brlapi_suspendDriver (const char *driver)
int BRLAPI_STDCALL brlapi__suspendDriver (brlapi_handle_t *handle, const char *driver)
int BRLAPI_STDCALL brlapi_resumeDriver (void)
int BRLAPI_STDCALL brlapi__resumeDriver (brlapi_handle_t *handle)
πΈ Detailed Description πΈ
so, bestie: if your application wants to directly talk to the braille terminal, it should use Raw Mode. it's giving main character energy. in this special mode, the driver hands the whole control of the terminal over to you β meaning brltty doesn't work any more. like, it's not driving. you're driving. ππ¨
for this, it simply has to call brlapi_enterRawMode(), then brlapi_sendRaw() and brlapi_recvRaw(), and finally give control back thanks to brlapi_leaveRawMode(). that's the whole lil ritual. π―οΈ
β οΈ special care of the terminal should be taken, since one might completely trash the terminal's data, or even lock it! not dramatic, fr fr. the application should always check for the terminal's type thanks to brlapi_getDriverName(). do not skip the vibe check. π
the client can also make brltty close the driver by using brlapi_suspendDriver(), and resume it again with brlapi_resumeDriver(). but this should not be used if possible: raw mode should be sufficient for any use. if not, please ask for features :) π«Ά
π Function Documentation π
int BRLAPI_STDCALL brlapi__enterRawMode (brlapi_handle_t * handle, const char * driver)
References BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi__leaveRawMode (brlapi_handle_t * handle)
References BRLAPI_STDCALL.
ssize_t BRLAPI_STDCALL brlapi__recvRaw (brlapi_handle_t * handle, void * buffer, size_t size)
References BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi__resumeDriver (brlapi_handle_t * handle)
References BRLAPI_STDCALL.
ssize_t BRLAPI_STDCALL brlapi__sendRaw (brlapi_handle_t * handle, const void * buffer, size_t size)
References BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi__suspendDriver (brlapi_handle_t * handle, const char * driver)
References BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi_enterRawMode (const char * driver)
Switch to Raw mode π₯
TODO: document which functions work in raw mode.
(yes bestie, that TODO is literally in the original. we don't make the rules, we just report them. π)
Parameters
driverβ Specifies the name of the driver for which the raw communication will be established.
Returns
0 on success, -1 on error
References BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi_leaveRawMode (void )
Leave Raw mode πͺ
Returns
0 on success, -1 on error
References BRLAPI_STDCALL.
ssize_t BRLAPI_STDCALL brlapi_recvRaw (void * buffer, size_t size)
Get Raw data π₯
Parameters
bufferβ points on a buffer where the function will store the received data;sizeβ holds the buffer size.
Returns
its size, -1 on error, or on interruption by a signal or a parameter change notification, in which case brlapi_errno will be BRLAPI_ERROR_LIBCERR and errno will be EINTR.
References BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi_resumeDriver (void )
Resume braille driver βΆοΈ
Returns
-1 on error
References BRLAPI_STDCALL.
ssize_t BRLAPI_STDCALL brlapi_sendRaw (const void * buffer, size_t size)
Send Raw data π€
Parameters
bufferβ points on the data;sizeβ holds the packet size.
Returns
size on success, -1 on error
References BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi_suspendDriver (const char * driver)
Suspend braille driver βΈοΈ
Parameters
driverβ Specifies the name of the driver which will be suspended.
Returns
-1 on error
References BRLAPI_STDCALL.
π Author π
Generated automatically by Doxygen for BrlAPI from the source code. it's giving "the robot wrote my essay and honestly it ate". π€β¨
and that's the whole page, bestie! this one's from the BrlAPI crew, Version 0.8, and you're reading brlapi_driverspecific(3). now go forth, take control of that terminal, and please check the driver name first. periodt. π
π¦ where this page comes from
- fedora 43: brlapi-devel 0.8.7-4.fc43 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 43: brlapi-devel 0.8.7-4.fc43 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 44: brlapi-devel 0.8.7-8.fc44 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 44: brlapi-devel 0.8.7-8.fc44 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu resolute: libbrlapi-dev 6.7-1ubuntu6
- ubuntu stonking: libbrlapi-dev 6.9.1+repack-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms