(index<- )        ./libterm/terminfo/mod.rs

    git branch:    * master           5200215 auto merge of #14035 : alexcrichton/rust/experimental, r=huonw
    modified:    Wed Apr  9 17:27:03 2014
  1  // Copyright 2012-2014 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  //! Terminfo database interface.
 12  
 13  use collections::HashMap;
 14  
 15  /// A parsed terminfo database entry.
 16  pub struct TermInfo {
 17      /// Names for the terminal
 18      pub names: Vec<~str> ,
 19      /// Map of capability name to boolean value
 20      pub bools: HashMap<~str, bool>,
 21      /// Map of capability name to numeric value
 22      pub numbers: HashMap<~str, u16>,
 23      /// Map of capability name to raw (unexpanded) string
 24      pub strings: HashMap<~str, Vec<u8> >
 25  }
 26  
 27  pub mod searcher;
 28  
 29  /// TermInfo format parsing.
 30  pub mod parser {
 31      //! ncurses-compatible compiled terminfo format parsing (term(5))
 32      pub mod compiled;
 33  }
 34  pub mod parm;