From f3dc38dcae472286c7d7c2708e4dbfe70a6c2d57 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 15 Nov 2019 11:16:53 +0000 Subject: Handle OSC 7 (a VTE extension) and put the result in a new format (pane_path). --- screen.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'screen.c') diff --git a/screen.c b/screen.c index d24f4ba4..9db0f609 100644 --- a/screen.c +++ b/screen.c @@ -159,6 +159,14 @@ screen_set_title(struct screen *s, const char *title) utf8_stravis(&s->title, title, VIS_OCTAL|VIS_CSTYLE|VIS_TAB|VIS_NL); } +/* Set screen path. */ +void +screen_set_path(struct screen *s, const char *path) +{ + free(s->path); + utf8_stravis(&s->path, path, VIS_OCTAL|VIS_CSTYLE|VIS_TAB|VIS_NL); +} + /* Push the current title onto the stack. */ void screen_push_title(struct screen *s) -- cgit