1TICKIT_TERM_SET_OUTPUT_FD(3)Library Functions ManualTICKIT_TERM_SET_OUTPUT_FD(3)
2
3
4
6 tickit_term_set_output_fd, tickit_term_get_output_fd - manage terminal
7 output
8
10 #include <tickit.h>
11
12 void tickit_term_set_output_fd(TickitTerm *tt, int fd);
13 int tickit_term_get_output_fd(TickitTerm *tt);
14
15 Link with -ltickit.
16
18 tickit_term_set_output_fd() associates an output file descriptor with
19 the terminal instance. If no output function has been set by
20 tickit_term_set_output_func(3) then this file descriptor will be used
21 to send bytes to the user's terminal. This file descriptor will also be
22 used by tickit_term_refresh_size(3) to query the size of the terminal
23 by issuing the TIOCGWINSZ ioctl(2). The value -1 may be set to indicate
24 an absence of a file descriptor.
25
26 tickit_term_get_output_fd() returns the currently associated output
27 file descriptor, or -1 if none has been set.
28
29 After both an input and output method have been defined, it is recom‐
30 mended to call tickit_term_await_started(3) to wait for the terminal to
31 be set up.
32
34 tickit_term_set_output_fd() returns no value. tickit_term_get_out‐
35 put_fd() returns a file descriptor or -1.
36
38 tickit_term_new(3), tickit_term_set_output_func(3),
39 tickit_term_await_started(3), tickit_term_print(3), tickit_term(7),
40 tickit(7)
41
42
43
44 TICKIT_TERM_SET_OUTPUT_FD(3)