tickit_term_get_size3
Manage terminal size
Usage
#include <tickit.h> void tickit_term_get_size(TickitTerm *tt, int *lines, int *cols); void tickit_term_set_size(TickitTerm *tt, int lines, int cols); void tickit_term_refresh_size(TickitTerm *tt);
Link with -ltickit.
Overview
tickit_term_get_size() fetches the currently-known size of the terminal into the two integers supplied by pointers.
tickit_term_set_size() stores a new size for the terminal into the instance, and invokes any TICKIT_EV_RESIZE event handlers.
tickit_term_refresh_size() queries the size of the terminal by using the TIOCGWINSZ ioctl(2) call on the currently-associated output filehandle, and invokes any TICKIT_EV_RESIZE event handlers if the size has changed.
Return value
tickit_term_get_size, tickit_term_set_size and tickit_term_refresh_size return no value.
Releases
4 releases since Debian 10 (Buster); the text changed 1 time.