aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-02-06 11:13:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-02-06 11:13:27 +0000
commit0a302265ec36b1cbdeb752ed9a87cb19b188017c (patch)
treecbe215dad8862bd348c4233dd6469ac6732561f4 /terminal.h
parentMerge branch 'modifiers' (diff)
parentgrid: resize with reflow: reflow FTCS_COMMAND_{EXECUTED,FINISHED} (diff)
Merge branch 'pipe-command-output'
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);