mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-03 07:15:29 -04:00
term: add term_scrollback_to_text() and term_view_to_text()
These functions extract the current view, or the entire scrollback as an UTF-8 encoded byte buffer.
This commit is contained in:
parent
e6acafa118
commit
4d17423ed1
2 changed files with 62 additions and 2 deletions
|
|
@ -543,5 +543,7 @@ void term_disable_app_sync_updates(struct terminal *term);
|
|||
enum term_surface term_surface_kind(
|
||||
const struct terminal *term, const struct wl_surface *surface);
|
||||
|
||||
bool term_scrollback_to_text(const struct terminal *term, wchar_t **text);
|
||||
bool term_view_to_text(const struct terminal *term, wchar_t **text);
|
||||
bool term_scrollback_to_text(
|
||||
const struct terminal *term, char **text, size_t *len);
|
||||
bool term_view_to_text(
|
||||
const struct terminal *term, char **text, size_t *len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue