Struct term::terminfo::TermInfo [] [src]

pub struct TermInfo {
    pub names: Vec<String>,
    pub bools: HashMap<Stringbool>,
    pub numbers: HashMap<Stringu16>,
    pub strings: HashMap<StringVec<u8>>,

A parsed terminfo database entry.


names: Vec<String>

Names for the terminal

bools: HashMap<Stringbool>

Map of capability name to boolean value

numbers: HashMap<Stringu16>

Map of capability name to numeric value

strings: HashMap<StringVec<u8>>

Map of capability name to raw (unexpanded) string


impl TermInfo

fn from_env() -> Result<TermInfo>

Create a TermInfo based on current environment.

fn from_name(name: &str) -> Result<TermInfo>

Create a TermInfo for the named terminal.

fn from_path<P: AsRef<Path>>(path: P) -> Result<TermInfo>

Parse the given TermInfo.

Trait Implementations

impl Debug for TermInfo

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.