]> Sergey Matveev's repositories - st.git/commit
Support OSC 110, 111, and 112 for resetting colors
authorAyman Bagabas <ayman.bagabas@gmail.com>
Fri, 8 Aug 2025 21:11:59 +0000 (17:11 -0400)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 9 Aug 2025 10:34:01 +0000 (12:34 +0200)
commitd6c431859c6c0201e0668ed24a9f17cebf0a68f5
tree4413b35cd34646e44bea25e5871ab83ca79c7231
parentf114bcedd113017d907aad32031db92c050f4bf3
Support OSC 110, 111, and 112 for resetting colors

This adds support for OSC 110, 111, and 112 escape sequences to reset
the foreground, background, and cursor colors in the terminal. The
changes include handling these sequences in the `strhandle` function of
`st.c`, allowing applications to reset colors to their default values.

The OSC sequences originated from Xterm control sequences and are now
widely used in terminal applications and supported by many terminal
emulators. For applications, this allows them to reset colors to
default values without needing to know the colors beforehand.

Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>
st.c