---
name: "tickit_term_refresh_size"
section: "3"
platform: "linux"
package: "libtickit-dev"
version: "0.4.3-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tickit_term_refresh_size"
---

# tickit\_term\_refresh\_size(3)

manage terminal size

## NAME

tickit\_term\_get\_size, tickit\_term\_set\_size, tickit\_term\_refresh\_size - manage terminal size

## SYNOPSIS

```
#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*.

## 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 **TIOCGWINSZ** [**ioctl**(2)](/ioctl/2.md) 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.

## SEE ALSO

[**tickit\_term\_build**(3)](/tickit_term_build/3.md), [**tickit\_term\_goto**(3)](/tickit_term_goto/3.md), [**tickit\_term\_bind\_event**(3)](/tickit_term_bind_event/3.md), [**tickit\_term**(7)](/tickit_term/7.md), [**tickit**(7)](/tickit/7.md)
