ELinks 0.18.0
interlink_event_keyboard Struct Reference

Like struct term_event_keyboard but used in the interlink protocol between ELinks processes. More...

#include <kbd.h>

Data Fields

int key
 This is like term_event_key_T but carries individual bytes rather than entire characters, and uses different values for special keys.
int modifier
 The values are from term_event_modifier_T, but the type must be int so that the representation remains compatible with ELinks 0.11.

Detailed Description

Like struct term_event_keyboard but used in the interlink protocol between ELinks processes.

Because the processes may be running different versions of ELinks, especially if a new version has just been installed, this structure should be kept binary compatible as long as possible. See bug 793 for a list of pending changes to the protocol.

Field Documentation

◆ key

int interlink_event_keyboard::key

This is like term_event_key_T but carries individual bytes rather than entire characters, and uses different values for special keys.

  • Values <= -2 are not used, for ELinks 0.11 compatibility.
  • Value == -1 is KBD_UNDEF; not sent via socket.
  • Values between 0 and 0xFF are bytes received from the terminal.
  • Values >= 0x100 are special; absolute values of constants from enum term_event_special_key, e.g. -KBD_ENTER.

◆ modifier

int interlink_event_keyboard::modifier

The values are from term_event_modifier_T, but the type must be int so that the representation remains compatible with ELinks 0.11.


The documentation for this struct was generated from the following file: