Re: [dev] [st] Home key does not work in yash

From: Страхиња Радић <sr_AT_strahinja.org>
Date: Fri, 2 Aug 2024 20:42:07 +0200

Дана 24/08/02 12:12PM, luonsiul_AT_autistici.org написа:
> Apologies for my previous mail which got all cluttered up (Trouble with mbl=
> aze).

Your email client (or email processor) seems to expand shell variables
in email bodies, which is a serious security and privacy risk. I
strongly advise either disabling shell variable expansion if possible,
or replacing the client/processor with a sane email client that doesn't
do that. Personally, I use neomutt.


> I don't have those bash configuration files as I use only yash
> normally. What I have in .yashrc in addition to aliases, is:

What I meant is that Bash might read some initialization files (which
include /etc/profile for example), which yash doesn't. yash manpage
states:

> Note
>
> Yash never automatically reads /etc/profile, /etc/yashrc, nor
> ~/.profile.

So there you go. One of the settings I'm aiming at with this are locale
environment variables, which I'd also check. I have:

        LANG=sr_RS.UTF-8

(which can be set to LANG=en_US.UTF-8 or whatever other language, as
long as it has .UTF-8 suffix), and

        LC_ALL=''
        LC_COLLATE=''
        LC_CTYPE=''
        LC_MESSAGES=''
        LC_MONETARY=''
        LC_NUMERIC=''
        LC_TIME=''


> export TERM=3D'linux-s'

For st, that should be st or st-256color or, if you are using tmux,
tmux or tmux-256color. The file doc/faq.txt[1] in the yash repository
mentions xterm or xterm-16color "and other terminal types...". But even
with linux-s, Home key here works as it should, so I guess this issue
is unrelated to TERM.

What is output when you press Ctrl-V followed by Home? You should get

        ^[[1~

Did you install st with

        # make clean install

as root (which should also compile and install the st terminfo entry)?

Lastly, as Hiltjo suggested, I'd try using both st and yash compiled
from latest source. This is the intended way of using suckless programs
like st.

[1]: https://github.com/magicant/yash/blob/trunk/doc/faq.txt#line-editing-does-not-work
Received on Fri Aug 02 2024 - 20:42:07 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 02 2024 - 20:48:08 CEST