st

simple terminal

git clone https://9o.is/git/st.git

commit be5ad5cb8982511d6e32fced9796c5e510851110
parent 2fda306ca4cbb474fcbe968ebdc1ee798fed1b2e
Author: Tim Culverhouse <tim@timculverhouse.com>
Date:   Sun, 18 Feb 2024 06:56:49 -0600

csi: check for private marker in 'S' case

The handler for 'S' final character does not check for a private
marker. This can cause a conflict with a sequence called 'XTSMGRAPHICS'
which also has an 'S' final character, but uses the private marker '?'.
Without checking for a private marker, st will perform a scroll up
operation when XTSMGRAPHICS is seen, which can cause unexpected display
artifacts.

Diffstat:
Mst.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/st.c b/st.c @@ -1728,6 +1728,7 @@ csihandle(void) } break; case 'S': /* SU -- Scroll <n> line up */ + if (csiescseq.priv) break; DEFAULT(csiescseq.arg[0], 1); tscrollup(term.top, csiescseq.arg[0]); break;