aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/terminal.h b/terminal.h
index 0dca0f48..35127e3c 100644
--- a/terminal.h
+++ b/terminal.h
@@ -121,8 +121,11 @@ struct row {
bool dirty;
bool linebreak;
- /* Shell integration */
- bool prompt_marker;
+ struct {
+ bool prompt_marker;
+ int cmd_start; /* Column, -1 if unset */
+ int cmd_end; /* Column, -1 if unset */
+ } shell_integration;
};
struct sixel {
@@ -844,6 +847,8 @@ 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);
+bool term_command_output_to_text(
+ const struct terminal *term, char **text, size_t *len);
bool term_ime_is_enabled(const struct terminal *term);
void term_ime_enable(struct terminal *term);