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

  • buffer is the buffer provided by the application;
  • size is 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

  • buffer is the buffer given by the application;
  • size is 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