Add a capability for OSC 7 and use it similarly to how the title is set

(and controlled by the same set-titles option). GitHub issue 3127.
This commit is contained in:
nicm
2022-03-24 09:05:57 +00:00
parent 6a1706a62f
commit 792d13af49
6 changed files with 60 additions and 1 deletions

3
tmux.h
View File

@@ -539,6 +539,7 @@ enum tty_code_code {
TTYC_SMULX,
TTYC_SMXX,
TTYC_SS,
TTYC_SWD,
TTYC_SYNC,
TTYC_TC,
TTYC_TSL,
@@ -1708,6 +1709,7 @@ struct client {
struct format_job_tree *jobs;
char *title;
char *path;
const char *cwd;
char *term_name;
@@ -2258,6 +2260,7 @@ void tty_start_tty(struct tty *);
void tty_send_requests(struct tty *);
void tty_stop_tty(struct tty *);
void tty_set_title(struct tty *, const char *);
void tty_set_path(struct tty *, const char *);
void tty_update_mode(struct tty *, int, struct screen *);
void tty_draw_line(struct tty *, struct screen *, u_int, u_int, u_int,
u_int, u_int, const struct grid_cell *, struct colour_palette *);