(index<- ) ./libextra/terminfo/terminfo.rs
1 // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 use std::hashmap::HashMap;
12
13 /// A parsed terminfo entry.
14 pub struct TermInfo {
15 /// Names for the terminal
16 names: ~[~str],
17 /// Map of capability name to boolean value
18 bools: HashMap<~str, bool>,
19 /// Map of capability name to numeric value
20 numbers: HashMap<~str, u16>,
21 /// Map of capability name to raw (unexpanded) string
22 strings: HashMap<~str, ~[u8]>
23 }
24
25 pub mod searcher;
26 pub mod parser {
27 pub mod compiled;
28 }
29 pub mod parm;