Skip to content

Commit

Permalink
Add /lib/terminfo to terminfo search path.
Browse files Browse the repository at this point in the history
The debian package of ncurses searches /lib/terminfo before searching
/usr/share/terminfo.
  • Loading branch information
beevik committed May 2, 2018
1 parent 7cbfaac commit 5a49b82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions terminfo.go
Expand Up @@ -69,6 +69,12 @@ func load_terminfo() ([]byte, error) {
}
}

// next, /lib/terminfo
data, err = ti_try_path("/lib/terminfo")
if err == nil {
return data, nil
}

// fall back to /usr/share/terminfo
return ti_try_path("/usr/share/terminfo")
}
Expand Down

0 comments on commit 5a49b82

Please sign in to comment.