![]() |
libghostty
|
#include <stddef.h>#include <stdint.h>#include <ghostty/vt/types.h>#include <ghostty/vt/allocator.h>#include <ghostty/vt/terminal.h>#include <ghostty/vt/key/event.h>Go to the source code of this file.
Macros | |
| #define | GHOSTTY_KITTY_KEY_DISABLED 0 |
| #define | GHOSTTY_KITTY_KEY_DISAMBIGUATE (1 << 0) |
| #define | GHOSTTY_KITTY_KEY_REPORT_EVENTS (1 << 1) |
| #define | GHOSTTY_KITTY_KEY_REPORT_ALTERNATES (1 << 2) |
| #define | GHOSTTY_KITTY_KEY_REPORT_ALL (1 << 3) |
| #define | GHOSTTY_KITTY_KEY_REPORT_ASSOCIATED (1 << 4) |
| #define | GHOSTTY_KITTY_KEY_ALL (GHOSTTY_KITTY_KEY_DISAMBIGUATE | GHOSTTY_KITTY_KEY_REPORT_EVENTS | GHOSTTY_KITTY_KEY_REPORT_ALTERNATES | GHOSTTY_KITTY_KEY_REPORT_ALL | GHOSTTY_KITTY_KEY_REPORT_ASSOCIATED) |
Typedefs | |
| typedef struct GhosttyKeyEncoder * | GhosttyKeyEncoder |
| typedef uint8_t | GhosttyKittyKeyFlags |
Functions | |
| GhosttyResult | ghostty_key_encoder_new (const GhosttyAllocator *allocator, GhosttyKeyEncoder *encoder) |
| void | ghostty_key_encoder_free (GhosttyKeyEncoder encoder) |
| void | ghostty_key_encoder_setopt (GhosttyKeyEncoder encoder, GhosttyKeyEncoderOption option, const void *value) |
| void | ghostty_key_encoder_setopt_from_terminal (GhosttyKeyEncoder encoder, GhosttyTerminal terminal) |
| GhosttyResult | ghostty_key_encoder_encode (GhosttyKeyEncoder encoder, GhosttyKeyEvent event, char *out_buf, size_t out_buf_size, size_t *out_len) |
Key event encoding to terminal escape sequences.
Definition in file key/encoder.h.
| #define GHOSTTY_KITTY_KEY_ALL (GHOSTTY_KITTY_KEY_DISAMBIGUATE | GHOSTTY_KITTY_KEY_REPORT_EVENTS | GHOSTTY_KITTY_KEY_REPORT_ALTERNATES | GHOSTTY_KITTY_KEY_REPORT_ALL | GHOSTTY_KITTY_KEY_REPORT_ASSOCIATED) |
All Kitty keyboard protocol flags enabled
Definition at line 57 of file key/encoder.h.
| #define GHOSTTY_KITTY_KEY_DISABLED 0 |
Kitty keyboard protocol disabled (all flags off)
Definition at line 39 of file key/encoder.h.
| #define GHOSTTY_KITTY_KEY_DISAMBIGUATE (1 << 0) |
Disambiguate escape codes
Definition at line 42 of file key/encoder.h.
| #define GHOSTTY_KITTY_KEY_REPORT_ALL (1 << 3) |
Report all key events including those normally handled by the terminal
Definition at line 51 of file key/encoder.h.
| #define GHOSTTY_KITTY_KEY_REPORT_ALTERNATES (1 << 2) |
Report alternate key codes
Definition at line 48 of file key/encoder.h.
| #define GHOSTTY_KITTY_KEY_REPORT_ASSOCIATED (1 << 4) |
Report associated text with key events
Definition at line 54 of file key/encoder.h.
| #define GHOSTTY_KITTY_KEY_REPORT_EVENTS (1 << 1) |
Report key press and release events
Definition at line 45 of file key/encoder.h.