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

pub struct TermInfo {
    pub names: Vec<String>,
    pub bools: HashMap<String, bool>,
    pub numbers: HashMap<String, u16>,
    pub strings: HashMap<String, Vec<u8>>,
}

A parsed terminfo database entry.

Fields

names

Names for the terminal

bools

Map of capability name to boolean value

numbers

Map of capability name to numeric value

strings

Map of capability name to raw (unexpanded) string

Methods

impl TermInfo
[src]

fn from_env() -> Result<TermInfo, Error>

Create a TermInfo based on current environment.

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

Create a TermInfo for the named terminal.

fn from_path(path: &Path) -> Result<TermInfo, Error>

Parse the given TermInfo.

Trait Implementations

Derived Implementations

impl Debug for TermInfo
[src]

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

Formats the value using the given formatter.