mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-13 04:27:47 -05:00
parent
2a4e7fde8d
commit
3cefe78b40
2 changed files with 8 additions and 4 deletions
|
|
@ -54,6 +54,8 @@
|
|||
(https://codeberg.org/dnkl/foot/issues/922).
|
||||
* Support for re-mapping input, i.e. mapping input to custom escape
|
||||
sequences (https://codeberg.org/dnkl/foot/issues/325).
|
||||
* OSC-4 and OSC-11 replies now uses four digits instead of 2
|
||||
(https://codeberg.org/dnkl/foot/issues/971).
|
||||
|
||||
|
||||
### Deprecated
|
||||
|
|
|
|||
10
osc.c
10
osc.c
|
|
@ -596,8 +596,9 @@ osc_dispatch(struct terminal *term)
|
|||
|
||||
char reply[32];
|
||||
size_t n = xsnprintf(
|
||||
reply, sizeof(reply), "\033]4;%u;rgb:%02x/%02x/%02x%s",
|
||||
idx, r, g, b, terminator);
|
||||
reply, sizeof(reply),
|
||||
"\033]4;%u;rgb:%02hhx%02hhx/%02hhx%02hhx/%02hhx%02hhx%s",
|
||||
idx, r, r, g, g, b, b, terminator);
|
||||
term_to_slave(term, reply, n);
|
||||
}
|
||||
|
||||
|
|
@ -695,8 +696,9 @@ osc_dispatch(struct terminal *term)
|
|||
*/
|
||||
char reply[32];
|
||||
size_t n = xsnprintf(
|
||||
reply, sizeof(reply), "\033]%u;rgb:%02x/%02x/%02x%s",
|
||||
param, r, g, b, terminator);
|
||||
reply, sizeof(reply),
|
||||
"\033]%u;rgb:%02hhx%02hhx/%02hhx%02hhx/%02hhx%02hhx%s",
|
||||
param, r, r, g, g, b, b, terminator);
|
||||
|
||||
term_to_slave(term, reply, n);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue