mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 04:27:00 +00:00
Increase delay for foreground and background queries as well as device
attributes, GitHub issue 4541.
This commit is contained in:
8
tmux.h
8
tmux.h
@ -1529,13 +1529,15 @@ struct tty {
|
||||
#define TTY_OPENED 0x20
|
||||
#define TTY_OSC52QUERY 0x40
|
||||
#define TTY_BLOCK 0x80
|
||||
#define TTY_HAVEDA 0x100 /* Primary DA. */
|
||||
#define TTY_HAVEDA 0x100
|
||||
#define TTY_HAVEXDA 0x200
|
||||
#define TTY_SYNCING 0x400
|
||||
#define TTY_HAVEDA2 0x800 /* Secondary DA. */
|
||||
#define TTY_HAVEDA2 0x800
|
||||
#define TTY_WINSIZEQUERY 0x1000
|
||||
#define TTY_HAVEFG 0x2000
|
||||
#define TTY_HAVEBG 0x4000
|
||||
#define TTY_ALL_REQUEST_FLAGS \
|
||||
(TTY_HAVEDA|TTY_HAVEDA2|TTY_HAVEXDA)
|
||||
(TTY_HAVEDA|TTY_HAVEDA2|TTY_HAVEXDA|TTY_HAVEFG|TTY_HAVEBG)
|
||||
int flags;
|
||||
|
||||
struct tty_term *term;
|
||||
|
@ -938,7 +938,7 @@ partial_key:
|
||||
if (delay == 0)
|
||||
delay = 1;
|
||||
if ((tty->flags & TTY_ALL_REQUEST_FLAGS) != TTY_ALL_REQUEST_FLAGS) {
|
||||
log_debug("%s: increasing delay for active DA query", c->name);
|
||||
log_debug("%s: increasing delay for active query", c->name);
|
||||
if (delay < 500)
|
||||
delay = 500;
|
||||
}
|
||||
@ -1031,7 +1031,7 @@ tty_keys_extended_key(struct tty *tty, const char *buf, size_t len,
|
||||
cc_t bspace;
|
||||
key_code nkey, onlykey;
|
||||
struct utf8_data ud;
|
||||
utf8_char uc;
|
||||
utf8_char uc;
|
||||
|
||||
*size = 0;
|
||||
|
||||
@ -1682,12 +1682,14 @@ tty_keys_colours(struct tty *tty, const char *buf, size_t len, size_t *size,
|
||||
else
|
||||
log_debug("fg is %s", colour_tostring(n));
|
||||
*fg = n;
|
||||
tty->flags |= TTY_HAVEFG;
|
||||
} else if (n != -1) {
|
||||
if (c != NULL)
|
||||
log_debug("%s bg is %s", c->name, colour_tostring(n));
|
||||
else
|
||||
log_debug("bg is %s", colour_tostring(n));
|
||||
*bg = n;
|
||||
tty->flags |= TTY_HAVEBG;
|
||||
}
|
||||
|
||||
return (0);
|
||||
|
Reference in New Issue
Block a user