termkey_start(3)

termkey_start3

Enable or disable terminal operations

Usage

#include <termkey.h>

int termkey_start(TermKey *tk);
int termkey_stop(TermKey *tk);

int termkey_is_started(TermKey *tk);

Link with -ltermkey.

Overview

termkey_start() enables the terminal IO operations of the given termkey(7) instance, including sending a terminal control sequence and setting the termios(3) modes required.

termkey_stop() disables terminal IO operations, by reversing the steps taken by termkey_start(). A newly-constructed termkey instance will have terminal IO enabled already.

termkey_is_started() enquires whether terminal IO is currently enabled.

Return value

If successful, termkey_start() and termkey_stop() return a true value. On failure, zero is returned with errno set to indicate the failure. termkey_is_started() returns true or false to indicate whether terminal IO is currently enabled.

From libtermkey-dev 0.22-2+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.