TERMKEY\_SET\_WAITTIME(3) Library Functions Manual TERMKEY\_SET\_WAITTIME(3)

# [NAME](#NAME)

termkey\_set\_waittime, termkey\_get\_waittime - control the wait time for multibyte sequences

# [SYNOPSIS](#SYNOPSIS)

```
#include <termkey.h>

void termkey_set_waittime(TermKey *tk, int msec);
int termkey_get_waittime(TermKey *tk);
```

Link with *-ltermkey*.

# [DESCRIPTION](#DESCRIPTION)

**termkey\_set\_waittime**() sets the number of milliseconds that [**termkey\_waitkey**(3)](/man/os/libtermkey/termkey_waitkey.3) will wait for the remaining bytes of a multibyte sequence if it detects the start of a partially-complete one.

**termkey\_get\_waittime**() returns the value set by the last call to **termkey\_set\_waittime**(), or the default value if a different has not been set.

# [RETURN VALUE](#RETURN_VALUE)

**termkey\_set\_waittime**() returns no value. **termkey\_get\_waittime**() returns the current wait time in milliseconds.

# [SEE ALSO](#SEE_ALSO)

[**termkey\_getkey**(3)](/man/os/libtermkey/termkey_getkey.3), [**termkey\_waitkey**(3)](/man/os/libtermkey/termkey_waitkey.3), [**termkey**(7)](/man/os/libtermkey/termkey.7)

---

Document: termkey_set_waittime(3) from libtermkey 0.22-r8 (Chainguard OS)
