![]() |
libghostty-vt 0.0.0
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <ghostty/vt/types.h>#include <ghostty/vt/allocator.h>#include <ghostty/vt/device.h>#include <ghostty/vt/modes.h>#include <ghostty/vt/osc.h>#include <ghostty/vt/size_report.h>#include <ghostty/vt/grid_ref.h>#include <ghostty/vt/io.h>#include <ghostty/vt/kitty_graphics.h>#include <ghostty/vt/screen.h>#include <ghostty/vt/point.h>#include <ghostty/vt/selection.h>#include <ghostty/vt/style.h>Go to the source code of this file.
Data Structures | |
| union | GhosttyTerminalScrollViewportValue |
| struct | GhosttyTerminalScrollViewport |
| struct | GhosttyTerminalWriteStop |
| struct | GhosttyTerminalScrollbar |
| struct | GhosttyTerminalMemoryUsage |
| struct | GhosttyTerminalUnknownStringSequence |
| struct | GhosttyTerminalUnknownOscSequence |
| union | GhosttyTerminalUnknownSequenceValue |
| struct | GhosttyTerminalUnknownSequence |
| struct | GhosttyClipboardContent |
| struct | GhosttyClipboardWriteReply |
| struct | GhosttyClipboardWrite |
| struct | GhosttyClipboardReadReply |
| struct | GhosttyClipboardRead |
| struct | GhosttyTerminalDesktopNotification |
| struct | GhosttyTerminalProgressReport |
| struct | GhosttyTerminalProgramStatus |
| struct | GhosttyTerminalSemanticPrompt |
| struct | GhosttyTerminalResizeWindowGrid |
| union | GhosttyTerminalResizeWindowValue |
| struct | GhosttyTerminalResizeWindow |
| struct | GhosttyTerminalModeConfig |
Typedefs | |
Bell | |
| typedef void(* | GhosttyTerminalBellFn) (GhosttyTerminal terminal, void *userdata) |
Desktop Notifications | |
| typedef void(* | GhosttyTerminalDesktopNotificationFn) (GhosttyTerminal terminal, void *userdata, const GhosttyTerminalDesktopNotification *notification) |
Queries | |
| typedef bool(* | GhosttyTerminalColorSchemeFn) (GhosttyTerminal terminal, void *userdata, GhosttyColorScheme *out_scheme) |
| typedef bool(* | GhosttyTerminalDeviceAttributesFn) (GhosttyTerminal terminal, void *userdata, GhosttyDeviceAttributes *out_attrs) |
| typedef GhosttyString(* | GhosttyTerminalEnquiryFn) (GhosttyTerminal terminal, void *userdata) |
| typedef bool(* | GhosttyTerminalSizeFn) (GhosttyTerminal terminal, void *userdata, GhosttySizeReportSize *out_size) |
Terminal State | |
| typedef void(* | GhosttyTerminalTitleChangedFn) (GhosttyTerminal terminal, void *userdata) |
| typedef void(* | GhosttyTerminalRenderHoldFn) (GhosttyTerminal terminal, void *userdata, bool held) |
| typedef void(* | GhosttyTerminalPwdChangedFn) (GhosttyTerminal terminal, void *userdata) |
Replies | |
| typedef void(* | GhosttyTerminalWritePtyFn) (GhosttyTerminal terminal, void *userdata, const uint8_t *data, size_t len) |
| typedef GhosttyString(* | GhosttyTerminalXtversionFn) (GhosttyTerminal terminal, void *userdata) |
Unknown Sequences | |
| enum | GhosttyTerminalUnknownSequenceTag { GHOSTTY_TERMINAL_UNKNOWN_SEQUENCE_APC = 0 , GHOSTTY_TERMINAL_UNKNOWN_SEQUENCE_OSC = 1 , GHOSTTY_TERMINAL_UNKNOWN_SEQUENCE_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE } |
| typedef void(* | GhosttyTerminalUnknownSequenceFn) (GhosttyTerminal terminal, void *userdata, const GhosttyTerminalUnknownSequence *sequence) |
Progress Reports | |
| enum | GhosttyTerminalProgressState { GHOSTTY_TERMINAL_PROGRESS_STATE_REMOVE = 0 , GHOSTTY_TERMINAL_PROGRESS_STATE_SET = 1 , GHOSTTY_TERMINAL_PROGRESS_STATE_ERROR = 2 , GHOSTTY_TERMINAL_PROGRESS_STATE_INDETERMINATE = 3 , GHOSTTY_TERMINAL_PROGRESS_STATE_PAUSE = 4 , GHOSTTY_TERMINAL_PROGRESS_STATE_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE } |
| typedef void(* | GhosttyTerminalProgressReportFn) (GhosttyTerminal terminal, void *userdata, const GhosttyTerminalProgressReport *report) |
Program Status | |
| enum | GhosttyProgramStatusState { GHOSTTY_PROGRAM_STATUS_STATE_IDLE = 0 , GHOSTTY_PROGRAM_STATUS_STATE_WORKING = 1 , GHOSTTY_PROGRAM_STATUS_STATE_DONE = 2 , GHOSTTY_PROGRAM_STATUS_STATE_BLOCKED = 3 , GHOSTTY_PROGRAM_STATUS_STATE_ERROR = 4 , GHOSTTY_PROGRAM_STATUS_STATE_CLEAR = 5 , GHOSTTY_PROGRAM_STATUS_STATE_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE } |
| enum | GhosttyProgramStatusKind { GHOSTTY_PROGRAM_STATUS_KIND_NONE = 0 , GHOSTTY_PROGRAM_STATUS_KIND_PERMISSION = 1 , GHOSTTY_PROGRAM_STATUS_KIND_QUESTION = 2 , GHOSTTY_PROGRAM_STATUS_KIND_AUTH = 3 , GHOSTTY_PROGRAM_STATUS_KIND_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE } |
| typedef void(* | GhosttyTerminalProgramStatusFn) (GhosttyTerminal terminal, void *userdata, const GhosttyTerminalProgramStatus *report) |
Semantic Prompts | |
| enum | GhosttySemanticPromptKind { GHOSTTY_SEMANTIC_PROMPT_INVALID = 0 , GHOSTTY_SEMANTIC_PROMPT_PROMPT_START = 1 , GHOSTTY_SEMANTIC_PROMPT_INPUT_START = 2 , GHOSTTY_SEMANTIC_PROMPT_OUTPUT_START = 3 , GHOSTTY_SEMANTIC_PROMPT_COMMAND_END = 4 , GHOSTTY_SEMANTIC_PROMPT_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE } |
| enum | GhosttySemanticPromptPromptKind { GHOSTTY_SEMANTIC_PROMPT_PROMPT_PRIMARY = 0 , GHOSTTY_SEMANTIC_PROMPT_PROMPT_RIGHT = 1 , GHOSTTY_SEMANTIC_PROMPT_PROMPT_CONTINUATION = 2 , GHOSTTY_SEMANTIC_PROMPT_PROMPT_SECONDARY = 3 , GHOSTTY_SEMANTIC_PROMPT_PROMPT_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE } |
| typedef void(* | GhosttyTerminalSemanticPromptFn) (GhosttyTerminal terminal, void *userdata, const GhosttyTerminalSemanticPrompt *event) |
Reset and Resize | |
| enum | GhosttyTerminalResizeWindowTag { GHOSTTY_TERMINAL_RESIZE_WINDOW_GRID = 0 , GHOSTTY_TERMINAL_RESIZE_WINDOW_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE } |
| typedef void(* | GhosttyTerminalResetFn) (GhosttyTerminal terminal, void *userdata) |
| typedef void(* | GhosttyTerminalResizeWindowFn) (GhosttyTerminal terminal, void *userdata, const GhosttyTerminalResizeWindow *request) |
Complete terminal emulator state and rendering.
Definition in file terminal.h.