Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

st - simple terminal profile #94

Open
adamyg opened this issue Oct 25, 2024 · 1 comment
Open

st - simple terminal profile #94

adamyg opened this issue Oct 25, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@adamyg
Copy link
Owner

adamyg commented Oct 25, 2024

https://st.suckless.org/, target st 0.9.2 (2024-04-05)

@adamyg adamyg added this to the build-28 milestone Oct 25, 2024
@adamyg adamyg added the enhancement New feature or request label Oct 25, 2024
@adamyg
Copy link
Owner Author

adamyg commented Oct 25, 2024

ncurses profile:

st-direct|simpleterm with direct-color indexing,
        use=xterm+indirect, use=st,

#### SIMPLETERM
# st.suckless.org

st|stterm|aka simpleterm,
        use=st-0.8,

# Reviewed 0.8.2:
# In tack,
#       there is some problem turning off line-drawing
#       shift+control function-keys do nothing; shift+control cursor keys work
#       the padding tests make the terminal non-functional.
# In vttest,
#       SD/SU work
#       SL/SR/REP do not work
#       ECMA-48 cursor movement works, e.g., CHA, CBT, etc.
#
# This entry discards the ccc/initc capabilities from st-0.7 because they
# belong in st-256color.
st-0.8|simpleterm 0.8,
        kcbt@, kent@, oc=\E]104\007, Ms=\E]52;%p1%s;%p2%s\007,
        kDN3=\E[1;3B, kDN5=\E[1;5B, kLFT3=\E[1;3D, kLFT5=\E[1;5D,
        kNXT3=\E[6;3~, kNXT5=\E[6;5~, kPRV3=\E[5;3~,
        kPRV5=\E[5;5~, kRIT3=\E[1;3C, kRIT5=\E[1;5C,
        kUP3=\E[1;3A, kUP5=\E[1;5A, use=ecma+strikeout,
        use=st-0.6,

#       provided with the source is incorrect, since Se/Ss are mis-coded
#       as booleans rather than strings.
st-0.7|simpleterm 0.7,
        kcbt@, kent@, Ms=\E]52;%p1%s;%p2%s\007, kDN3=\E[1;3B,
        kDN5=\E[1;5B, kLFT3=\E[1;3D, kLFT5=\E[1;5D,
        kNXT3=\E[6;3~, kNXT5=\E[6;5~, kPRV3=\E[5;3~,
        kPRV5=\E[5;5~, kRIT3=\E[1;3C, kRIT5=\E[1;5C,
        kUP3=\E[1;3A, kUP5=\E[1;5A, use=ecma+strikeout,
        use=st-0.6, use=xterm+256color,

# st-0.4.1
#
# This version uses a table which supports a single modifier (a subset of
# xterm's keys, using the same scheme).  Because it supports only a single
# modifier in this table, function keys f36-f48 are normally unavailable
# because they are assigned to modifier-4.
#
# The program assigns TERM to match the program name (the upstream source says
# "st", but Debian renames it to "stterm").
#
# The source includes two entries which are not useful here:
#       st-meta| simpleterm with meta key,
#       st-meta-256color| simpleterm with meta key and 256 colors,
# because st's notion of "meta" does not correspond to the terminfo definition.
# Rather, it acts like xterm - when the meta feature is disabled.
#
# Removed invis -TD
# Added eo, removed ul -TD
#
# Reviewed st 0.5:
# implements control-modifier, but not control-shift for special keys
# implements alt-modifier, but not alt-shift for special keys
#
# Reviewed st 0.6:
#       http://git.suckless.org/st/log/st.info
# Tmux unofficial extensions, see TERMINFO EXTENSIONS in tmux(1)
# still has no function keys past kf36 (no combinations of modifiers)
# no application keypad mode, e.g, kent.
st-0.6|simpleterm 0.6,
        bce, mir, npc, xenl, XT,
        colors#8, pairs#64,
        acsc=+C\,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyy
             zz{{||}}~~,
        clear=\E[H\E[2J, cub1=^H, cud1=\n, cup=\E[%i%p1%d;%p2%dH,
        dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX,
        ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
        flash=\E[?5h$<100/>\E[?5l, hpa=\E[%i%p1%dG,
        ich=\E[%p1%d@, is2=\E[4l\E>\E[?1034l, kDC=\E[3;2~,
        kEND=\E[1;2F, kHOM=\E[1;2H, kIC=\E[2;2~, kLFT=\E[1;2D,
        kNXT=\E[6;2~, kPRV=\E[5;2~, kRIT=\E[1;2C, ka1=\E[1~,
        ka3=\E[5~, kb2=\EOu, kbs=^?, kc1=\E[4~, kc3=\E[6~, kcbt=\E[Z,
        kclr=\E[3;5~, kdl1=\E[3;2~, ked=\E[1;5F, kel=\E[1;2F,
        khome=\E[1~, kil1=\E[2;5~, kind=\E[1;2B, kmous=\E[M,
        kri=\E[1;2A, krmir=\E[2;2~, mc0=\E[i, mc4=\E[4i, mc5=\E[5i,
        op=\E[39;49m, ri=\EM, rmacs=\E(B, rmir=\E[4l,
        rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
        rs2=\E[4l\E>\E[?1034l, setab=\E[4%p1%dm,
        setaf=\E[3%p1%dm,
        setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
             %=%t3%e%p1%d%;m,
        setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
             %=%t3%e%p1%d%;m,
        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
            %t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m,
        smacs=\E(0, smir=\E[4h, smkx=\E[?1h\E=, u8=\E[?1;2c,
        vpa=\E[%i%p1%dd, Se=\E[2 q, Ss=\E[%p1%d q,
        use=ansi+apparrows, use=ansi+csr, use=ansi+enq,
        use=ansi+idl, use=ansi+inittabs, use=ansi+local,
        use=ansi+sgrbold, use=vt100+4bsd, use=vt100+pfkeys,
        use=vt220+pcedit, use=ecma+index, use=xterm+alt1049,
        use=vt220+cvis, use=xterm+sl, use=ecma+italics,
        use=ecma+strikeout, use=bracketed+paste,
        use=xterm+pcf2,
#
# st-0.1.1
#
# Note:  the original terminfo description uses leading blank to persuade
# ncurses to use "st" as its name.  Proper fix for that is to use "st" as an
# alias.
#
# Reading the code shows it should work for aixterm 16-colors
# - added st-16color
#
# Using tack:
# - set eo (erase-overstrike)
# - set xenl
# - tbc doesn't work
# - hts works
# - cbt doesn't work
# - shifted cursor-keys send sequences like rxvt
# - sgr referred to unimplemented "invis" mode.
# Fixes: add eo and xenl per tack, remove nonworking cbt, hts and tbc, invis
simpleterm|old-st|simpleterm 0.1.1,
        am, eo, mir, msgr, ul, xenl,
        cols#80, it#8, lines#24,
        bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub1=^H,
        cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
        dch1=\E[P, ed=\E[J, el=\E[K, home=\E[H, hpa=\E[%i%p1%dG,
        ht=^I, ich=\E[%p1%d@, ind=\n, kbs=^?, kdch1=\E[3~,
        kend=\E[4~, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
        kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[15~,
        kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
        khome=\E[1~, knp=\E[6~, kpp=\E[5~, rev=\E[7m, rmso=\E[m,
        rmul=\E[m,
        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
            %t;7%;m,
        sgr0=\E[0m, smso=\E[7m, smul=\E[4m, use=ansi+arrows,
        use=ansi+csr, use=ansi+idl, use=vt220+cvis,
        use=ecma+index, use=klone+color, use=xterm+acs,

st-16color|stterm-16color|simpleterm with 16-colors,
        use=ibm+16color, use=st,
# Tested with st 0.8.2
# The issue with the titlebar is fixed, though st is very slow.
# In st 0.7, 256 colors "works", but when running xterm's test-scripts, some
# garbage is shown in the titlebar.
#
# terminal wants to use TERM=stterm-256color, but that is longer than 14
# characters, making the choice nonportable.
st-256color|stterm-256color|simpleterm with 256 colors,
        use=xterm+256color, use=st,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant