A fast, lightweight and minimalistic Wayland terminal emulator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
540 B

#pragma once
#include <stddef.h>
#include <stdbool.h>
#include <wchar.h>
#include "terminal.h"
struct extraction_context;
struct extraction_context *extract_begin(
enum selection_kind kind, bool strip_trailing_empty);
bool extract_one(
const struct terminal *term, const struct row *row, const struct cell *cell,
int col, void *context);
bool extract_finish(
struct extraction_context *context, char **text, size_t *len);
bool extract_finish_wide(
struct extraction_context *context, wchar_t **text, size_t *len);