1TICKIT_TERM_GET_SIZE(3) Library Functions Manual TICKIT_TERM_GET_SIZE(3)
2
3
4
6 tickit_term_get_size, tickit_term_set_size, tickit_term_refresh_size -
7 manage terminal size
8
10 #include <tickit.h>
11
12 void tickit_term_get_size(TickitTerm *tt, int *lines, int *cols);
13 void tickit_term_set_size(TickitTerm *tt, int lines, int cols);
14 void tickit_term_refresh_size(TickitTerm *tt);
15
16 Link with -ltickit.
17
19 tickit_term_get_size() fetches the currently-known size of the terminal
20 into the two integers supplied by pointers.
21
22 tickit_term_set_size() stores a new size for the terminal into the in‐
23 stance, and invokes any TICKIT_EV_RESIZE event handlers.
24
25 tickit_term_refresh_size() queries the size of the terminal by using
26 the TIOCGWINSZ ioctl(2) call on the currently-associated output file‐
27 handle, and invokes any TICKIT_EV_RESIZE event handlers if the size has
28 changed.
29
31 tickit_term_get_size, tickit_term_set_size and tickit_term_refresh_size
32 return no value.
33
35 tickit_term_build(3), tickit_term_goto(3), tickit_term_bind_event(3),
36 tickit_term(7), tickit(7)
37
38
39
40 TICKIT_TERM_GET_SIZE(3)