diff options
author | nicm <nicm> | 2019-11-15 11:16:53 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-11-15 11:16:53 +0000 |
commit | f3dc38dcae472286c7d7c2708e4dbfe70a6c2d57 (patch) | |
tree | 7a2013bf4c2df1a44c234386f4eaaf5c4123351a /screen.c | |
parent | 1f966c495ca021858fdba00f6619d024ecbc41d4 (diff) | |
download | rtmux-f3dc38dcae472286c7d7c2708e4dbfe70a6c2d57.tar.gz rtmux-f3dc38dcae472286c7d7c2708e4dbfe70a6c2d57.tar.bz2 rtmux-f3dc38dcae472286c7d7c2708e4dbfe70a6c2d57.zip |
Handle OSC 7 (a VTE extension) and put the result in a new format (pane_path).
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |