mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Add a feature for bracketed paste.
This commit is contained in:
6
tty.c
6
tty.c
@ -407,7 +407,7 @@ tty_stop_tty(struct tty *tty)
|
||||
tty_raw(tty, tty_term_string1(tty->term, TTYC_SS, 0));
|
||||
}
|
||||
if (tty->mode & MODE_BRACKETPASTE)
|
||||
tty_raw(tty, "\033[?2004l");
|
||||
tty_raw(tty, tty_term_string(tty->term, TTYC_DSBP));
|
||||
if (*tty->ccolour != '\0')
|
||||
tty_raw(tty, tty_term_string(tty->term, TTYC_CR));
|
||||
|
||||
@ -729,9 +729,9 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s)
|
||||
}
|
||||
if (changed & MODE_BRACKETPASTE) {
|
||||
if (mode & MODE_BRACKETPASTE)
|
||||
tty_puts(tty, "\033[?2004h");
|
||||
tty_putcode(tty, TTYC_ENBP);
|
||||
else
|
||||
tty_puts(tty, "\033[?2004l");
|
||||
tty_putcode(tty, TTYC_DSBP);
|
||||
}
|
||||
tty->mode = mode;
|
||||
}
|
||||
|
Reference in New Issue
Block a user