diff options
author | Thomas Adam <thomas@xteddy.org> | 2022-03-24 12:01:11 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2022-03-24 12:01:11 +0000 |
commit | 5e491e79475425ca58316eac30a76038756a6499 (patch) | |
tree | c7e4318f1574fddb1541f3b75d9e09d58c2f37db /tty.c | |
parent | 964deae422e4127a64f60fa3b54e2bf47b8e074c (diff) | |
parent | 792d13af49f2550a9a8d11b0099528628957a1a0 (diff) | |
download | rtmux-5e491e79475425ca58316eac30a76038756a6499.tar.gz rtmux-5e491e79475425ca58316eac30a76038756a6499.tar.bz2 rtmux-5e491e79475425ca58316eac30a76038756a6499.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -655,6 +655,18 @@ tty_set_title(struct tty *tty, const char *title) tty_putcode(tty, TTYC_FSL); } +void +tty_set_path(struct tty *tty, const char *title) +{ + if (!tty_term_has(tty->term, TTYC_SWD) || + !tty_term_has(tty->term, TTYC_FSL)) + return; + + tty_putcode(tty, TTYC_SWD); + tty_puts(tty, title); + tty_putcode(tty, TTYC_FSL); +} + static void tty_force_cursor_colour(struct tty *tty, int c) { |