![]() |
libghostty
|
#include <stddef.h>#include <ghostty/vt/allocator.h>#include <ghostty/vt/selection.h>#include <ghostty/vt/types.h>Go to the source code of this file.
Enumerations | |
| enum | GhosttySearchStatus { GHOSTTY_SEARCH_STATUS_RUNNING = 0 , GHOSTTY_SEARCH_STATUS_FEED_REQUIRED = 1 , GHOSTTY_SEARCH_STATUS_COMPLETE = 2 , GHOSTTY_SEARCH_STATUS_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE } |
| enum | GhosttySearchScroll { GHOSTTY_SEARCH_SCROLL_IF_NEEDED = 0 , GHOSTTY_SEARCH_SCROLL_NONE = 1 , GHOSTTY_SEARCH_SCROLL_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE } |
| enum | GhosttySearchData { GHOSTTY_SEARCH_DATA_STATUS = 0 , GHOSTTY_SEARCH_DATA_NEEDLE = 1 , GHOSTTY_SEARCH_DATA_TOTAL_MATCHES = 2 , GHOSTTY_SEARCH_DATA_SELECTED_INDEX = 3 , GHOSTTY_SEARCH_DATA_SELECTED_MATCH = 4 , GHOSTTY_SEARCH_DATA_MATCHES = 5 , GHOSTTY_SEARCH_DATA_VIEWPORT_MATCHES = 6 , GHOSTTY_SEARCH_DATA_SELECT_SCROLL = 7 , GHOSTTY_SEARCH_DATA_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE } |
| enum | GhosttySearchOption { GHOSTTY_SEARCH_OPT_NEEDLE = 0 , GHOSTTY_SEARCH_OPT_SELECT_NEXT = 1 , GHOSTTY_SEARCH_OPT_SELECT_PREV = 2 , GHOSTTY_SEARCH_OPT_SELECT_SCROLL = 3 , GHOSTTY_SEARCH_OPT_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE } |
Functions | |
| GHOSTTY_API GhosttyResult | ghostty_search_new (const GhosttyAllocator *allocator, GhosttySearch *out_search, GhosttyTerminal terminal) |
| GHOSTTY_API void | ghostty_search_free (GhosttySearch search) |
| GHOSTTY_API GhosttyResult | ghostty_search_tick (GhosttySearch search, GhosttySearchStatus *out_status) |
| GHOSTTY_API GhosttyResult | ghostty_search_feed (GhosttySearch search) |
| GHOSTTY_API GhosttyResult | ghostty_search_run (GhosttySearch search) |
| GHOSTTY_API GhosttyResult | ghostty_search_set (GhosttySearch search, GhosttySearchOption option, const void *value) |
| GHOSTTY_API GhosttyResult | ghostty_search_get (GhosttySearch search, GhosttySearchData data, void *value) |
| GHOSTTY_API GhosttyResult | ghostty_search_get_multi (GhosttySearch search, size_t count, const GhosttySearchData *keys, void **values, size_t *out_written) |
Search terminal contents, including scrollback, for a string.
Definition in file search.h.