---
name: "ggiEventSend"
section: "3"
platform: "linux"
package: "libggi2-dev"
version: "1:2.2.2-5"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/ggiEventSend"
---

# ggiEventSend(3)

Send commands and events to a LibGGI visual

## NAME

**ggiEventSend** - Send commands and events to a LibGGI visual

## SYNOPSIS

```
#include <ggi/ggi.h>
int ggiEventSend(ggi_visual_t vis, gii_event *ev);
```

## DESCRIPTION

**ggiEventSend** injects an event into the queue.

## CONTROLLING VT SWITCHING BEHAVIOR

If an application wants to continue running after its VT is switched away, it should make a call **ggiEventSend** to the visual with an **evCommand** event with code **GGICMD\_NOHALT\_ON\_UNMAP**.  To disable this behavior, use a command event with code **GGICMD\_HALT\_ON\_UNMAP**.  The latter is the default.

## SEE ALSO

`ggiEventPoll(3)`, `giiEventSend(3)`
