summaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-11-15 12:01:27 +0000
committerThomas Adam <thomas@xteddy.org>2019-11-15 12:01:27 +0000
commitdbdff241b2f01c18cced24833f2acf56a117e72a (patch)
tree59a886fc65e84ba5f252b26cd570c353f283a02e /screen.c
parent48cbbb8757efbda11c74b01c5b5126e233fb166c (diff)
parent5dfe9db78820aedd5d4dfe60728e871f935bff36 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/screen.c b/screen.c
index 9b67e7e8..405932ef 100644
--- a/screen.c
+++ b/screen.c
@@ -158,6 +158,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)