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.

Fields

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

Methods

impl TermInfo
[src]

fn from_env() -> Result<TermInfoError>

Create a TermInfo based on current environment.

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

Create a TermInfo for the named terminal.

fn from_path(path: &Path) -> Result<TermInfoError>

Parse the given TermInfo.

Trait Implementations

impl Debug for TermInfo
[src]

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

Formats the value using the given formatter.