[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#33186] [PATCH 6/7] gnu: slang: Use a correct location for terminfo
From: |
Mathieu Othacehe |
Subject: |
[bug#33186] [PATCH 6/7] gnu: slang: Use a correct location for terminfo dirs. |
Date: |
Wed, 07 Nov 2018 18:39:57 +0900 |
User-agent: |
mu4e 1.0; emacs 26.1 |
Hey,
> Note that ncurses honors the TERMINFO_DIRS environment variable, so I
> suppose it would work to just set it at run time?
Slang uses this piece of code to locate terminfo directory:
--8<---------------cut here---------------start------------->8---
static SLCONST char *Terminfo_Dirs [] =
{
"", /* $TERMINFO */
"", /* $HOME/.terminfo */
#ifdef MISC_TERMINFO_DIRS
MISC_TERMINFO_DIRS, <---- set during configure
#endif
"/usr/local/etc/terminfo",
"/usr/local/share/terminfo",
"/usr/local/lib/terminfo",
"/etc/terminfo",
"/usr/share/terminfo",
"/usr/lib/terminfo",
"/usr/share/lib/terminfo",
"/lib/terminfo",
NULL,
};
--8<---------------cut here---------------end--------------->8---
So TERMINFO_DIRS is not used sadly.
>
> Now, if this change means that Slang will work out-of-the-box by
> default, it’s probably preferable.
I'll stick with this patch then.
Pushed as 8243f4e55a9f87821370eb2198fa9b5c8eac6648.
Mathieu