Public bug reported:

My terminal emulator (Kitty) installs its terminfo entry to:

/usr/local/lib/kitty/terminfo/x/xterm-kitty

But it also registers /usr/local/lib/kitty/terminfo/ as a terminfo
database:

% infocmp -D
/usr/local/lib/kitty/terminfo
/etc/terminfo
/lib/terminfo
/usr/share/terminfo

I use tmux, which uses setupterm:
https://github.com/tmux/tmux/blob/b2a2c3a1e90756313b6709905f189934123f85ed
/tty-term.c#L412

setupterm sets an error code unless I symlink the terminfo def to a
traditional location:

sudo ln -s /usr/local/lib/kitty/terminfo/x/xterm-kitty
/usr/share/terminfo/x/xterm-kitty

This stops the problem. setupterm is presumably not searching all
database locations.

I am not the developer of tmux, he directed me here to log the issue.

See https://github.com/tmux/tmux/issues/1433 for the original bug
report.

** Affects: ncurses (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ncurses in Ubuntu.
https://bugs.launchpad.net/bugs/1786617

Title:
  setupterm doesn't find terminfo entry in non-standard database
  location

Status in ncurses package in Ubuntu:
  New

Bug description:
  My terminal emulator (Kitty) installs its terminfo entry to:

  /usr/local/lib/kitty/terminfo/x/xterm-kitty

  But it also registers /usr/local/lib/kitty/terminfo/ as a terminfo
  database:

  % infocmp -D
  /usr/local/lib/kitty/terminfo
  /etc/terminfo
  /lib/terminfo
  /usr/share/terminfo

  I use tmux, which uses setupterm:
  https://github.com/tmux/tmux/blob/b2a2c3a1e90756313b6709905f189934123f85ed
  /tty-term.c#L412

  setupterm sets an error code unless I symlink the terminfo def to a
  traditional location:

  sudo ln -s /usr/local/lib/kitty/terminfo/x/xterm-kitty
  /usr/share/terminfo/x/xterm-kitty

  This stops the problem. setupterm is presumably not searching all
  database locations.

  I am not the developer of tmux, he directed me here to log the issue.

  See https://github.com/tmux/tmux/issues/1433 for the original bug
  report.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/1786617/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to