![]() |
libghostty
|
#include <stddef.h>
#include <stdint.h>
#include <ghostty/vt/result.h>
#include <ghostty/vt/allocator.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) |
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 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
#define GHOSTTY_KITTY_KEY_DISABLED 0 |
#define GHOSTTY_KITTY_KEY_DISAMBIGUATE (1 << 0) |
#define GHOSTTY_KITTY_KEY_REPORT_ALL (1 << 3) |
#define GHOSTTY_KITTY_KEY_REPORT_ALTERNATES (1 << 2) |
#define GHOSTTY_KITTY_KEY_REPORT_ASSOCIATED (1 << 4) |