diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-12-07 07:21:41 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-12-07 07:21:41 +0000 |
commit | 198ff8b5387261a7cfd6fe1524f2fdc02adc4298 (patch) | |
tree | e53eeee9c3af1d2e4be5a14cdc3844490b71dd60 /usr.bin/tmux/input.c | |
parent | 39e9b96cbc93255f527d7e3ac6f7e749d7fb506a (diff) |
Use four digits not two for RGB responses to match other terminals.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r-- | usr.bin/tmux/input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index fc00c3200a0..cb7fedec156 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.196 2021/11/11 09:31:16 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.197 2021/12/07 07:21:40 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -2505,7 +2505,8 @@ input_osc_colour_reply(struct input_ctx *ictx, u_int n, int c) end = "\007"; else end = "\033\\"; - input_reply(ictx, "\033]%u;rgb:%02hhx/%02hhx/%02hhx%s", n, r, g, b, end); + input_reply(ictx, "\033]%u;rgb:%02hhx%02hhx/%02hhx%02hhx/%02hhx%02hhx%s", + n, r, r, g, g, b, b, end); } /* Handle the OSC 4 sequence for setting (multiple) palette entries. */ |