bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: require TERMINFO env var to be set


From: jon wackley
Subject: RE: require TERMINFO env var to be set
Date: Sat, 7 Dec 2002 00:49:03 -0500

Hi,

It worked.

Thanks,
jonw

 -----Original Message-----
From:   jon wackley [mailto:address@hidden
Sent:   December 6, 2002 11:22 PM
To:     'jon wackley'; 'address@hidden'
Subject:        RE: require TERMINFO env var to be set


Hi,

Tried softlink from the installed share/terminfo to the
/usr/share/lib/terminfo path and it worked.  Found in
ncurses/tinfo/read_entry.c that if the constant TERMINFO_DIRS is set (which
it is in ncurses_cfg.h) then it overides the default value;

#ifdef TERMINFO_DIRS
    return _nc_read_terminfo_dirs(TERMINFO_DIRS, filename, ttn, tp);
#else
    return _nc_read_tic_entry(filename, TERMINFO, ttn, tp);
#endif
}
"read_entry.c" [readonly] line 503 of 503 --100%-- col 1

address@hidden /space3/ncurses-5.3_src:b
./configure --prefix=/space3/ncurses-5.3/solaris_2.5.1 --with-terminfo-dirs=
"/usr/share/lib/terminfo:/usr/lib/terminfo" --with-default-terminfo-dir=/usr
/share/lib/terminfo --with-shared

produces;

address@hidden /space3/ncurses-5.3_src/include:b grep TERMINFO *.h
ncurses_cfg.h:#define TERMINFO_DIRS
"/usr/share/lib/terminfo:/usr/lib/terminfo"
ncurses_cfg.h:#define TERMINFO "/usr/share/lib/terminfo"

This is confusing as the ./configure summary output is;

      bin directory: /space3/ncurses-5.3/solaris_2.5.1/bin
      lib directory: /space3/ncurses-5.3/solaris_2.5.1/lib
  include directory: /space3/ncurses-5.3/solaris_2.5.1/include/ncurses
      man directory: /space3/ncurses-5.3/solaris_2.5.1/man
 terminfo directory: /usr/share/lib/terminfo

The terminfo directory setting is the default setting, what is actually used
in the terminfo-dirs setting if it is set.

I will try this to see if it works.

Thanks,
jonw

 -----Original Message-----
From:   jon wackley [mailto:address@hidden
Sent:   December 6, 2002 9:19 PM
To:     'address@hidden'
Subject:        require TERMINFO env var to be set


Hi,

./configure --with-default-terminfo-dir=/usr/lib/share/terminfo, and test
programs require TERMINFO to be set to operate.  Is there any way to
configure the library to set the default terminfo-dir?

The error I receive is;

Error opening terminal:

When I set the TERMINFO env var the program works.

Thanks,
jonw





reply via email to

[Prev in Thread] Current Thread [Next in Thread]