File: brlapi_write.3

package info (click to toggle)
brltty 3.4.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,268 kB
  • ctags: 4,537
  • sloc: ansic: 54,295; sh: 3,470; makefile: 793; tcl: 398; yacc: 300; awk: 57; python: 29
file content (56 lines) | stat: -rw-r--r-- 1,595 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.TH "Writing on the braille display" 3 "15 Jan 2004" "BrlAPI" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Writing on the braille display \- write text to the braille display 
More...
.SS "Functions"

.in +1c
.ti -1c
.RI "int \fBbrlapi_writeBrl\fP (uint32_t cursor, const char *str)"
.br
.ti -1c
.RI "int \fBbrlapi_writeBrlDots\fP (const char *dots)"
.br
.in -1c
.SH "DETAILED DESCRIPTION"
.PP 
Once \fBbrlapi_getTty()\fP was called, the application can call \fBbrlapi_writeBrl()\fP to write things on the braille display.
.PP
\fBNote: \fP
.in +1c
Be sure to call \fBbrlapi_getTty()\fP \fIbefore\fP calling brlapi_write*(), or else you'll get an error. This is particularly not always trivial when writing multithreaded applications. 
.SH "FUNCTION DOCUMENTATION"
.PP 
.SS "int brlapi_writeBrl (uint32_t cursor, const char * str)"
.PP
Write the given \\0-terminated string to the braille display
.PP
If the string is too long, it is cut. If it's too short, spaces are appended.
.PP
\fBParameters: \fP
.in +1c
.TP
\fB\fIcursor\fP\fP
gives the cursor position; if less than or equal to 0 or greater than the display width, no cursor is shown at all; 
.TP
\fB\fIstr\fP\fP
points on the string to be displayed.
.PP
\fBReturns: \fP
.in +1c
0 on success, -1 on error. 
.SS "int brlapi_writeBrlDots (const char * dots)"
.PP
Write the given dots array to the display
.PP
\fBParameters: \fP
.in +1c
.TP
\fB\fIdots\fP\fP
points on an array of dot information, one per character. Its size must hence be the same as what \fBbrlapi_getDisplaySize()\fP returns.
.PP
\fBReturns: \fP
.in +1c
0 on success, -1 on error.