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>>,
}
Unstable (rustc_private)

: use the crates.io term library instead

A parsed terminfo database entry.

Fields

names: Vec<String>
Unstable (rustc_private)

: use the crates.io term library instead

Names for the terminal

bools: HashMap<String, bool>
Unstable (rustc_private)

: use the crates.io term library instead

Map of capability name to boolean value

numbers: HashMap<String, u16>
Unstable (rustc_private)

: use the crates.io term library instead

Map of capability name to numeric value

strings: HashMap<String, Vec<u8>>
Unstable (rustc_private)

: use the crates.io term library instead

Map of capability name to raw (unexpanded) string

Methods

impl TermInfo
[src]

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

Unstable (rustc_private)

: use the crates.io term library instead

Create a TermInfo based on current environment.

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

Unstable (rustc_private)

: use the crates.io term library instead

Create a TermInfo for the named terminal.

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

Unstable (rustc_private)

: use the crates.io term library instead

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.