[hackers] [st] Fix tmux terminfo extensions Se and Ss || Sebastian J. Bronner

From: <git_AT_suckless.org>
Date: Tue, 5 Nov 2019 20:00:03 +0100 (CET)

commit 83866428de031300eab03fbb116bcf7d2b1d4f60
Author: Sebastian J. Bronner <waschtl_AT_sbronner.com>
AuthorDate: Tue Nov 5 18:16:39 2019 +0100
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Tue Nov 5 19:51:35 2019 +0100

    Fix tmux terminfo extensions Se and Ss
    
    The tmux terminfo extensions Ss and Se are currently specified as
    booleans in `st.info`. They should be strings. See
    https://github.com/tmux/tmux/blob/eeedb43ae847a0a692ceea965f7556e84bca4fd0/tty-term.c
    lines 254 and 265.
    
    I have used the values from
    https://invisible-island.net/ncurses/terminfo.src.html#toc-_S_I_M_P_L_E_T_E_R_M
    for this patch.

diff --git a/st.info b/st.info
index 52fc617..78ffd30 100644
--- a/st.info
+++ b/st.info
_AT_@ -189,10 +189,10 @@ st| simpleterm,
         rmxx=\E[29m,
         smxx=\E[9m,
 # tmux extensions, see TERMINFO EXTENSIONS in tmux(1)
- Se,
- Ss,
         Tc,
         Ms=\E]52;%p1%s;%p2%s\007,
+ Se=\E[2 q,
+ Ss=\E[%p1%d q,
 
 st-256color| simpleterm with 256 colors,
         use=st,
Received on Tue Nov 05 2019 - 20:00:03 CET

This archive was generated by hypermail 2.3.0 : Tue Nov 05 2019 - 20:00:35 CET