We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2543177 commit 9790460Copy full SHA for 9790460
src/libterm/terminfo/searcher.rs
@@ -42,12 +42,14 @@ pub fn get_dbpath_for_term(term: &str) -> Option<~Path> {
42
dirs_to_search.push(Path::new(i.to_owned()));
43
}
44
},
45
- // Found nothing, use the default paths
46
- // /usr/share/terminfo is the de facto location, but it seems
47
- // Ubuntu puts it in /lib/terminfo
+ // Found nothing in TERMINFO_DIRS, use the default paths:
+ // According to /etc/terminfo/README, after looking at
+ // ~/.terminfo, ncurses will search /etc/terminfo, then
48
+ // /lib/terminfo, and eventually /usr/share/terminfo.
49
None => {
- dirs_to_search.push(Path::new("/usr/share/terminfo"));
50
+ dirs_to_search.push(Path::new("/etc/terminfo"));
51
dirs_to_search.push(Path::new("/lib/terminfo"));
52
+ dirs_to_search.push(Path::new("/usr/share/terminfo"));
53
54
55
0 commit comments