Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unibi_from_term: make $TERMINFO behavior compatible to curses #2

Merged
merged 1 commit into from
Aug 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/unibi_from_term.pod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ It looks in the following places:
=item 1.

If the environment variable C<TERMINFO> is set, it is interpreted as the name
of the directory to search. No other directory is used.
of the directory to search for local terminal definitions before checking in
the standard place.

=item 2.

Expand Down
5 changes: 4 additions & 1 deletion uniutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ unibi_term *unibi_from_term(const char *term) {
}

if ((env = getenv("TERMINFO"))) {
return from_dir(env, NULL, NULL, term);
ut = from_dir(env, NULL, NULL, term);
if (ut) {
return ut;
}
}

if ((env = getenv("HOME"))) {
Expand Down