From: nicm Date: Tue, 7 Dec 2021 07:21:40 +0000 (+0000) Subject: Use four digits not two for RGB responses to match other terminals. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d3d5e558bb2b2047d641f1c464940584e6e7cf37;p=openbsd Use four digits not two for RGB responses to match other terminals. --- 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 @@ -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. */