st
simple terminal
git clone https://9o.is/git/st.git
commit ebe67d092bddc55a73f1e20c0e5dfb4274437c27 parent ec27a672246d3eb0a85bba7f6387b88d4f805867 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 5 Feb 2023 13:29:35 +0100 Fixed OSC color reset without parameter->resets all colors Adapted from (garbled) patch by wim <wim@thinkerwim.org> Additional notes: it should reset all the colors using xloadcols(). To reproduce: set a different (theme) color using some escape code, then reset it: printf '\x1b]104\x07' Diffstat:
| M | st.c | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/st.c b/st.c @@ -1932,8 +1932,10 @@ strhandle(void) if (p && !strcmp(p, "?")) { osc_color_response(j, 0, 1); } else if (xsetcolorname(j, p)) { - if (par == 104 && narg <= 1) + if (par == 104 && narg <= 1) { + xloadcols(); return; /* color reset without parameter */ + } fprintf(stderr, "erresc: invalid color j=%d, p=%s\n", j, p ? p : "(null)"); } else {