brlapi_getDriverId man page on YellowDog

Man page or keyword search:  
man Server   18644 pages
apropos Keyword Search (all sections)
Output format
YellowDog logo
[printable version]

Getting Terminal information(3)	    BrlAPI     Getting Terminal information(3)

NAME
       Getting Terminal information - How to get information about the
       connected Terminal.

   Functions
       int brlapi_getDriverId (char *id, size_t n)
       int brlapi_getDriverName (char *name, size_t n)
       int brlapi_getDisplaySize (unsigned int *x, unsigned int *y)

Detailed Description
       Before using Raw mode or key codes, the application should always check
       the type of the connected terminal, to be sure it is really the one it
       expects.

       One should also check for display size, so as to adjust further
       displaying on it.

Function Documentation
   int brlapi_getDisplaySize (unsigned int * x, unsigned int * y)
       Return the size of the braille display

   int brlapi_getDriverId (char * id, size_t n)
       Identify the driver used by brltty

       This function will fill its argument with the brltty 2-chars code of
       the driver currently in use, to which it adds a '\0'.

       Parameters:
	   id is the buffer given by the application;
	   n is the maximum size of the id buffer.

       Returns:
	   -1 on error, or a positive value giving the size of the needed
	   buffer, if the supplied one is to small (same as snprintf()).

   int brlapi_getDriverName (char * name, size_t n)
       Return the complete name of the driver used by brltty

       This function fills its argument with the whole name of the braille
       terminal if available, terminated with a '\0'.

       Parameters:
	   name is the buffer given by the application;
	   n is the maximum size for the name buffer.

       Returns:
	   -1 on error, or a positive value giving the size of the needed
	   buffer, if the supplied one is to small (same as snprintf()).

Version 1.0			  26 Dec 2005  Getting Terminal information(3)
[top]

List of man pages available for YellowDog

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net