gnotclub / xst

st fork that uses Xresources and some pretty good patches
MIT License
536 stars 74 forks source link

`st-256color` as termname giving errors #154

Closed crzjp closed 1 year ago

crzjp commented 1 year ago

Running xst from Void Linux repository, version (xst -v):

xst 0.8.4

Setting st-256color as st.termname outputs errors when startup:

warning: Could not set up terminal.
warning: TERM environment variable set to 'st-256color'.
warning: Check that this terminal type is supported on this system.
warning: Using fallback terminal type 'xterm-256color'.

Also when pressing ctrl + l to cleaning the terminal:

'st-256color': unknown terminal type.

Am I missing something?

neeasade commented 1 year ago

Does xst-256color give the same error?

crzjp commented 1 year ago

Does xst-256color give the same error?

Don't, but i'm setting this value to get better compatibility, like different cursors to vi-mode on fish shell. It has a list of terminals to check and st is in, but not xst.

By this, I know it might be a fish related issue, but I think it can interest xst devs since st-256colors should be a valid value.

neeasade commented 1 year ago

since st-256colors should be a valid value.

xst provides only xst-* terminfo items (IIRC the issue I previously ran into was that ncurses shipped conflicting st-* terminfo entries).

You might also install vanilla st or some other program that provides st terminfo

FWIW I'm not seeing the term error on startup here:

shot

I did see a specific reference to backspace handling here in fish as well

crzjp commented 1 year ago

You might also install vanilla st or some other program that provides st terminfo

Installed the st-terminfo package and fixed the issue, just like you said. Now, the cursors and keybinding works pretty well. Thank you for the attention