File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
branches/try/src/libterm/terminfo Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: b8ef9fd9c9f642ce7b8aed82782a1ed745d08d64
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: b8601a3d8b91ad3b653d143307611f2f5c75617e
5
- refs/heads/try: 25431774a933a3b0c5212ea45150660544dec1ec
5
+ refs/heads/try: 979046044f1beda3e81070de6504c0e7ec09f11a
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
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