Skip to content

Commit 328743a

Browse files
nielxkallisti5
authored andcommitted
Haiku: add search path for terminfo
* Hand rebased from Niels original work on 1.9.0
1 parent ba6eb57 commit 328743a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libterm/terminfo/searcher.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ pub fn get_dbpath_for_term(term: &str) -> Option<PathBuf> {
4848
// According to /etc/terminfo/README, after looking at
4949
// ~/.terminfo, ncurses will search /etc/terminfo, then
5050
// /lib/terminfo, and eventually /usr/share/terminfo.
51+
// On Haiku the database can be found at /boot/system/data/terminfo
5152
Err(..) => {
5253
dirs_to_search.push(PathBuf::from("/etc/terminfo"));
5354
dirs_to_search.push(PathBuf::from("/lib/terminfo"));
5455
dirs_to_search.push(PathBuf::from("/usr/share/terminfo"));
56+
dirs_to_search.push(PathBuf::from("/boot/system/data/terminfo"));
5557
}
5658
}
5759
}

0 commit comments

Comments
 (0)