File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,14 @@ pub fn get_dbpath_for_term(term: &str) -> Option<~Path> {
42
42
dirs_to_search. push ( Path :: new ( i. to_owned ( ) ) ) ;
43
43
}
44
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
45
+ // Found nothing in TERMINFO_DIRS, use the default paths:
46
+ // According to /etc/terminfo/README, after looking at
47
+ // ~/.terminfo, ncurses will search /etc/terminfo, then
48
+ // /lib/terminfo, and eventually /usr/share/terminfo.
48
49
None => {
49
- dirs_to_search. push ( Path :: new ( "/usr/share /terminfo" ) ) ;
50
+ dirs_to_search. push ( Path :: new ( "/etc /terminfo" ) ) ;
50
51
dirs_to_search. push ( Path :: new ( "/lib/terminfo" ) ) ;
52
+ dirs_to_search. push ( Path :: new ( "/usr/share/terminfo" ) ) ;
51
53
}
52
54
}
53
55
}
You can’t perform that action at this time.
0 commit comments