Description
There are a couple of issues with the terminfo.src in the current ncurses source.
First, the unfortunate reality is that lots of people use xterm and xterm-256color for terminals other than a strictly compliant xterm. The current database appears to include a rep capability, but many terminals don't implement this correctly. The graphical corruption is pretty obvious if you use something like ncdu which will make use of the repeating functionality, in a terminal like urxvt.
Ditching the rep capability from the xterm definition causes ncurses to fall back to something slightly less efficient, but widely supported: drawing the character multiple times. This seems a low risk, high value patch we could carry.
Second, tmux encourages users to use TERM=screen or screen-256color. A change was made just prior to the 6.2 release, it seems, that causes the old screen definition to be ditched in favour of one that inherits the ecma+index base:
# 2019-06-30
...
# + use ecma+index in screen, st -TD?
This definition includes a rin capability that flat out doesn't work with tmux:
# ECMA-48 does not include the VT100 indexing and scroll-margins. It has its
# own variation.
ecma+index|ECMA-48 scroll up/down,
indn=\E[%p1%dS, rin=\E[%p1%dT,
(i.e., CSI n T does nothing)
In a subsequent version, this was apparently corrected:
20190803
...
+ amend the change to screen, because tmux relies upon that entry
and does not support that feature (Debian #933572) -TD
Unfortunately I think we only get a new terminfo.src when we get a new ncurses release. I think it'd be a good idea for pkgsrc to contain a wholesale copy of terminfo.src which can be somewhat detached form the ncurses update process. We could also carry local modifications on the file. This is, I believe, what most distributions end up having to do, to manage the churn which is at times unhelpful.
What do you think?
Activity
ncurses: Remove "rin" from screen-256color
ncurses: Remove "rin" from screen-256color
jperkin commentedon Mar 30, 2020
Both issues fixed in NetBSD@4a21729 and NetBSD@e8a4d5a.
For now I'm going to hold off on maintaining our own copy of
terminfo.srcas it's not without risk (it's likely we'd maintain it as a patch against upstream pkgsrc which would be inherently vulnerable to bit-rot), but if we see regressions again then we'll strongly consider it.A fixed
ncurses-6.2nb2package will be available in the next trunk build, as well as our 2020Q1 release.jclulow commentedon Apr 2, 2020
Thanks!
re2c: update to 2.0.3.
libmaxminddb: update to 1.5.2.
(devel/R-cli) Updated 2.2.0 to 2.5.0
(www/R-httpuv) Updated 1.5.1 to 1.6.1
(math/R-xts) Updated 0.11.2 to 0.12.1
(misc/R-pillar) Updated 1.4.2 to 1.6.1
x11/fltk13: Update to 1.3.7
(textproc/R-haven) Updated 2.1.1 to 2.4.3, make test does NOT pass ye…
sysutils/lsd: update to 0.22.0
60 remaining items
rsnapshot: update to 1.5.1.
devel/codeberg-cli: update to 0.5.4
sysutils/hexyl: update to 0.17.0
graphics/matugen: update to 4.0.0
p5-XML-Parser: update to 2.58.
py-aiodns: update to 4.0.3.
sysutils/hexyl: update to 0.17.0
graphics/matugen: update to 4.0.0
p5-XML-Parser: update to 2.58.
py-aiodns: update to 4.0.3.
py-rpds-py: update to 2026.5.1.
Update to 4.43
Update to 20260402.0
Update to 20260402.0
misc/rozi: update to 0.0.34