brlapi_info(3)
π brlapi_info π β NAME
brlapi_info β getting Terminal information, bestie π
- how to get info about the connected Terminal, fr fr
okay so this whole page lives in the Library Functions Manual, and it's literally just the group chat for everything you need to know about asking your braille terminal "who are you bestie? π"
β¨ SYNOPSIS β¨
π Macros
#define BRLAPI_MAXNAMELENGTH 31
π¦ Functions
int BRLAPI_STDCALL brlapi_getDriverName (char *buffer, size_t size)
int BRLAPI_STDCALL brlapi__getDriverName (brlapi_handle_t *handle, char
*buffer, size_t size)
int BRLAPI_STDCALL brlapi_getModelIdentifier (char *buffer, size_t size)
int BRLAPI_STDCALL brlapi__getModelIdentifier (brlapi_handle_t *handle,
char *buffer, size_t size)
int BRLAPI_STDCALL brlapi_getDisplaySize (unsigned int *x, unsigned int
*y)
int BRLAPI_STDCALL brlapi__getDisplaySize (brlapi_handle_t *handle,
unsigned int *x, unsigned int *y)
πΈ Detailed Description πΈ
okay so before you go touching Raw mode or key codes, the application should always check the type of the connected terminal, so you're sure it's really the one you expect. no cap. vibe check first, always π«Ά
and you should also check the display size, so you can adjust further displaying on it. it's giving "measure twice, slay once" π
π Macro Definition Documentation π
#define BRLAPI_MAXNAMELENGTH 31
maximum name length for driver names embeded in BrlAPI packets, and it does not count any termination \0 character. so like, the null byte is on its own little journey, iconic honestly β
π Function Documentation π
int BRLAPI_STDCALL brlapi__getDisplaySize (brlapi_handle_t * handle, unsigned int * x, unsigned int * y)
references BRLAPI_STDCALL. that's the whole entry, she's lowkey mysterious π
int BRLAPI_STDCALL brlapi__getDriverName (brlapi_handle_t * handle, char * buffer, size_t size)
references BRLAPI_STDCALL. short and sweet, we stan β¨
int BRLAPI_STDCALL brlapi__getModelIdentifier (brlapi_handle_t * handle, char * buffer, size_t size)
references BRLAPI_STDCALL. periodt π
int BRLAPI_STDCALL brlapi_getDisplaySize (unsigned int * x, unsigned int * y)
return the size of the braille display π
references BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi_getDriverName (char * buffer, size_t size)
return the complete name of the driver used by brltty π₯
this function fills its argument with the whole name of the braille driver if available, terminated with a '\0'. yes bestie, it's null-terminated, we love to see it.
Parameters
bufferis the buffer provided by the application;sizeis the maximum size for the name buffer.
Returns
-1 on error, otherwise a positive value giving the size of the needed buffer (including '\0'). and if that value is bigger than size, the value was truncated and the caller should retry with a bigger buffer accordingly. π not the truncation
references BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi_getModelIdentifier (char * buffer, size_t size)
return an identifier for the device model used by brltty π¦
this function fills its argument with the whole identifier of the braille device model if available, terminated with a '\0'. same energy, different info, iykyk.
Parameters
bufferis the buffer given by the application;sizeis the maximum size for the identifier buffer.
Returns
-1 on error, otherwise a positive value giving the size of the needed buffer (including '\0'). if that value is bigger than size, the value was truncated and the caller should retry with a bigger buffer accordingly. π same plot twist
references BRLAPI_STDCALL.
π Author π
generated automatically by Doxygen for BrlAPI from the source code. so nobody hand-wrote this and honestly? she still ate π β¨
BrlAPI, Version 0.8, brlapi_info(3) β mwah, that's the whole page bestie, go forth and get your terminal info ππ¦π
π¦ 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms