---
name: "tickit_term_emit_key"
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_emit_key"
---

# tickit\_term\_emit\_key(3)

emit a fake key or mouse event

## NAME

tickit\_term\_emit\_key, tickit\_term\_emit\_mouse - emit a fake key or mouse event

## SYNOPSIS

```
#include <tickit.h>

void tickit_term_emit_key(TickitTerm *tt, TickitKeyEventInfo *info);
void tickit_term_emit_mouse(TickitTerm *tt, TickitMouseEventInfo *info);
```

Link with *-ltickit*.

## DESCRIPTION

**tickit\_term\_emit\_key**() invokes the event handler chain on the terminal instance, as if a key event had been received from the controlling terminal.**tickit\_term\_emit\_mouse**() invokes the event handler chain on the terminal instance, as if a mouse event had been received from the controlling terminal.

In each case, the event handler chain runs with the usual semantics; each installed handler with the appropriate bit set in its event type mask will be invoked until one returns a true value. Any remaining handlers after this will not get to see the event.

## SEE ALSO

[**tickit\_term\_build**(3)](/tickit_term_build/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)
