#983578 stterm: defaul variable for TERM didn't appear to work by default

Package:
stterm
Source:
stterm
Description:
simple terminal emulator for X
Submitter:
richard
Date:
2021-09-10 01:36:03 UTC
Severity:
important
Tags:
#983578#5
Date:
2021-02-26 17:24:58 UTC
From:
To:
Dear Maintainer,

With st, i ran

$ htop
Error opening terminal: st-256color.
$

but after I added
[ $TERM = st-256color ] && export TERM=xterm-256color
to my bashrc, htop worked

perhaps a change the default TERM value in config.def.h would be good?

thanks

#983578#10
Date:
2021-03-07 11:04:19 UTC
From:
To:
Hello Richard and thanks for this bug report. The st-256color terminfo
file is installed by the ncurses-term package, which is a dependency of
stterm:

$ dpkg -L ncurses-term|grep st-256color
/usr/share/terminfo/s/st-256color

so it should really be there.

Did perhaps the problem happen running htop on a remote system (via ssh)
while using the st terminal? In this case the problem is that the
terminfo file is missing on the remote system (missing or outdated
terminfo package).

Forcing TERM=xterm-256color is a workaround that may work, but it's not
a proper solution to be shipped by default, as the two terminfo entries
do differ.

Paride

richard wrote on 26/02/2021:

#983578#17
Date:
2021-09-09 21:06:57 UTC
From:
To:
Dear Maintainer,

Makes sense that it's not proper solution and thank you for your feedback.

Using st and dash I got the following.

$ dpkg -L ncurses-term|grep st-256color
/usr/share/terminfo/s/st-256color
$ TERM="st-256color"
$ htop
Error opening terminal: st-256color.
$ top
'st-256color': unknown terminal type.
$ man --version
man 2.9.4
$

#983578#22
Date:
2021-09-10 01:32:40 UTC
From:
To:
Dear Maintainer,

Oops, forgot to mention that it happens locally, and not remotely via something
like ssh.

Thanks

Kernel: Linux 5.10.0-8-amd64 (SMP w/1 CPU thread)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not
set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages stterm depends on:
ii  libc6           2.31-13
ii  libfontconfig1  2.13.1-4.2
ii  libx11-6        2:1.7.2-1
ii  libxft2         2.3.2-2
ii  ncurses-term    6.2+20201114-2

stterm recommends no packages.

stterm suggests no packages.