1TICKIT_TERM_SET_INPUT_FD(3)Library Functions ManualTICKIT_TERM_SET_INPUT_FD(3)
2
3
4
6 tickit_term_set_input_fd, tickit_term_get_input_fd - manage terminal
7 input
8
10 #include <tickit.h>
11
12 void tickit_term_set_input_fd(TickitTerm *tt, int fd);
13 int tickit_term_get_input_fd(TickitTerm *tt);
14
15 Link with -ltickit.
16
18 tickit_term_set_input_fd() associates an input file descriptor with the
19 terminal instance. This file descriptor will be used by
20 tickit_term_input_readable(3) to read more data from the terminal. The
21 value -1 may be set to indicate an absence of a file descriptor. If no
22 file descriptor is provided, input data may still be given by calling
23 tickit_term_input_push_bytes(3).
24
25 tickit_term_get_input_fd() returns the currently associated input file
26 descriptor, or -1 if none has been set.
27
28 After both an input and output method have been defined, it is recom‐
29 mended to call tickit_term_await_started(3) to wait for the terminal to
30 be set up.
31
33 tickit_term_set_input_fd() returns no value. tickit_term_get_input_fd()
34 returns a file descriptor or -1.
35
37 tickit_term_new(3), tickit_term_await_started(3),
38 tickit_term_bind_event(3), tickit_term(7), tickit(7)
39
40
41
42 TICKIT_TERM_SET_INPUT_FD(3)