mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-05 07:15:30 -04: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).
|
(https://codeberg.org/dnkl/foot/issues/922).
|
||||||
* Support for re-mapping input, i.e. mapping input to custom escape
|
* Support for re-mapping input, i.e. mapping input to custom escape
|
||||||
sequences (https://codeberg.org/dnkl/foot/issues/325).
|
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
|
### Deprecated
|
||||||
|
|
|
||||||
10
osc.c
10
osc.c
|
|
@ -596,8 +596,9 @@ osc_dispatch(struct terminal *term)
|
||||||
|
|
||||||
char reply[32];
|
char reply[32];
|
||||||
size_t n = xsnprintf(
|
size_t n = xsnprintf(
|
||||||
reply, sizeof(reply), "\033]4;%u;rgb:%02x/%02x/%02x%s",
|
reply, sizeof(reply),
|
||||||
idx, r, g, b, terminator);
|
"\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);
|
term_to_slave(term, reply, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -695,8 +696,9 @@ osc_dispatch(struct terminal *term)
|
||||||
*/
|
*/
|
||||||
char reply[32];
|
char reply[32];
|
||||||
size_t n = xsnprintf(
|
size_t n = xsnprintf(
|
||||||
reply, sizeof(reply), "\033]%u;rgb:%02x/%02x/%02x%s",
|
reply, sizeof(reply),
|
||||||
param, r, g, b, terminator);
|
"\033]%u;rgb:%02hhx%02hhx/%02hhx%02hhx/%02hhx%02hhx%s",
|
||||||
|
param, r, r, g, g, b, b, terminator);
|
||||||
|
|
||||||
term_to_slave(term, reply, n);
|
term_to_slave(term, reply, n);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue