logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tickit_term_get_size, tickit_term_set_size, tickit_term_refresh_size - manage terminal size

Description

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 TIOCGWINSZioctl(2) call on  the
       currently-associated  output  filehandle, and invokes any TICKIT_EV_RESIZE event handlers if the size has
       changed.

Name

       tickit_term_get_size, tickit_term_set_size, tickit_term_refresh_size - manage terminal size

Return Value

tickit_term_get_size, tickit_term_set_size and tickit_term_refresh_size return no value.

See Also

tickit_term_build(3), tickit_term_goto(3), tickit_term_bind_event(3), tickit_term(7), tickit(7)

                                                                                         TICKIT_TERM_GET_SIZE(3)

Synopsis

#include<tickit.h>voidtickit_term_get_size(TickitTerm*tt,int*lines,int*cols);voidtickit_term_set_size(TickitTerm*tt,intlines,intcols);voidtickit_term_refresh_size(TickitTerm*tt);

       Link with -ltickit.

See Also