- Subject: [slang-users] Lookup of terminfo files
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- Date: Tue, 6 Apr 2010 19:18:55 +0000 (UTC)
Hi,
due to a bug in ncurses in Debian, my attention was drawn to the lookup
of terminfo files in S‐Lang. Currently, the list in sltermin.c is
static SLCONST char *Terminfo_Dirs [] =
{
"", /* $HOME/.terminfo */
"", /* $TERMINFO */
#ifdef MISC_TERMINFO_DIRS
MISC_TERMINFO_DIRS,
#endif
"/usr/share/terminfo",
"/usr/lib/terminfo",
"/usr/share/lib/terminfo",
"/etc/terminfo",
"/lib/terminfo",
"/usr/local/lib/terminfo",
NULL,
};
Wouldn't it be better to check /etc/terminfo and /usr/local/lib/terminfo
before the other directories? This would give system administrators the
possibility to override terminfo files from the distribution system.
The library ncurses looks at the directory given in $TERMINFO before
looking at $HOME/.terminfo; see ncurses(3). Maybe, S‐Lang should also do
it this order.
Bye, Jörg.
--
Real programmers don't comment their code. It was hard to write,
it should be hard to understand.
_______________________________________________
slang-users-l mailing list
slang-users-l@xxxxxxxxxxx
http://mailman.jedsoft.org/mailman/listinfo/slang-users-l
[2010 date index]
[2010 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]