$ cat tgetflag.c #include <stdlib.h> #include <curses.h> #include <term.h> int main(void) { char buf[1024]; printf("tgetent: %d\n", tgetent(buf, getenv("TERM"))); printf("tgetflag: %d\n", tgetflag("hc")); return 0; } $ gcc tgetflag.c -lncurses $ TERM=xterm ./a.out tgetent: 1 tgetflag: 0 $ TERM=unlisted ./a.out tgetent: -1 Segmentation fault (core dumped) [status 139] $ Note that less doesn't seem to have the problem any more. less was used in the original bug report. This bug is over 16 months, and it would be nice it could be fixed. -- Please read <http://www.iki.fi/liw/mail-to-lasu.html> before mailing me. Please don't Cc: me when replying to my message on a mailing list.
Attachment:
pgpHKkbjP3Xle.pgp
Description: PGP signature