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

# tickit\_renderbuffer\_reset(3)

revert a render buffer back to initial state

## NAME

tickit\_renderbuffer\_reset - revert a render buffer back to initial state

## SYNOPSIS

```
#include <tickit.h>

void tickit_renderbuffer_reset(TickitRenderBuffer *rb);
```

Link with *-ltickit*.

## DESCRIPTION

**tickit\_renderbuffer\_reset**() resets the render buffer back to its initial state. The pending content is erased, and all the cells are set back to the skipped state. The virtual cursor position is unset, the translation offset set back to zero, the clipping region set to the entire buffer and the pen removed if set. Also the saved state stack is cleared.

Any memory allocated for the storage of strings by the **tickit\_renderbuffer\_text** family of functions is also released by this function.

## RETURN VALUE

This function returns no value.

## SEE ALSO

[**tickit\_renderbuffer\_new**(3)](/tickit_renderbuffer_new/3.md), [**tickit\_renderbuffer\_save**(3)](/tickit_renderbuffer_save/3.md), [**tickit\_renderbuffer\_restore**(3)](/tickit_renderbuffer_restore/3.md), [**tickit\_renderbuffer**(7)](/tickit_renderbuffer/7.md), [**tickit**(7)](/tickit/7.md)
