system-local terminfo does not search /usr/share/terminfo as README says

Bug #1705067 reported by Henrik Holst
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ncurses (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

    $ lsb_release -rd

    Description: Ubuntu 16.04.2 LTS
    Release: 16.04

The file /etc/terminfo/README says

    This directory is for system-local terminfo descriptions. By default,
    ncurses will search ${HOME}/.terminfo first, then /etc/terminfo (this
    directory), then /lib/terminfo, and last not least /usr/share/terminfo.

but it seems that /usr/share/terminfo is not used or does not work as expected?

Repro:

1) Install `stterm`

2) Start `stterm`

3) Type `clear`

Result:

    terminals database is inaccessible

Expected result:

Screen is cleared

Workaround:

Symlink the terminfo database to a user-local ~/.terminfo

    mkdir -p ~/.terminfo/s && ln -sf /usr/share/terminfo/s/stterm* ~/.terminfo/s

Tags: xenial
Revision history for this message
Thomas Dickey (dickey-his) wrote :

Works for me:

$ infocmp stterm|head -5
# Reconstructed via infocmp from file: /usr/share/terminfo/s/stterm
stterm| Suckless Tools simple terminal,
        am, bce, hs, mir, msgr, ul, xenl,
        colors#8, cols#80, it#8, lines#24, ncv#3, pairs#64,
        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,

$ infocmp -D
/etc/terminfo
/lib/terminfo
/usr/share/terminfo

$ toe -as
--> /etc/terminfo
----> /lib/terminfo
------> /usr/share/terminfo
...
----*-: stterm Suckless Tools simple terminal
----*-: stterm-256color Suckless Tools simple terminal with 256 colors
----*-: stterm-meta Suckless Tools simple terminal with meta key
----*-: stterm-meta-256color Suckless Tools simple terminal with meta key

Since /usr/share/terminfo is the compiled-in system default, it's hard to break that...

tags: added: xenial
Changed in ncurses (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.