summaryrefslogtreecommitdiffstats
path: root/cmd-queue.c
diff options
context:
space:
mode:
authornicm <nicm>2023-01-03 11:43:24 +0000
committernicm <nicm>2023-01-03 11:43:24 +0000
commita41a92744188ec5c8a8d4ddc100ec15b52d04603 (patch)
tree1ca299b75a40fad8aba34a14bcefa467869b506d /cmd-queue.c
parent3fe01ff09c2fe8629ebd5b0f2c2ce3aa5fa33c14 (diff)
Query the client terminal for foreground and background colours and if
OSC 10 or 11 is received but no colour has been set inside tmux, return the colour from the first attached client (probably most people will have all light or or all dark terminals).
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-queue.c b/cmd-queue.c
index 827630d7..bf1dbdaf 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -834,7 +834,8 @@ cmdq_print_data(struct cmdq_item *item, int parse, struct evbuffer *evb)
char *sanitized, *msg, *line;
if (!parse) {
- utf8_stravisx(&msg, data, size, VIS_OCTAL|VIS_CSTYLE);
+ utf8_stravisx(&msg, data, size,
+ VIS_OCTAL|VIS_CSTYLE|VIS_NOSLASH);
log_debug("%s: %s", __func__, msg);
} else {
msg = EVBUFFER_DATA(evb);