pub struct Capabilities { /* private fields */ }
Expand description

Capabilities holds information about the capabilities of a terminal. On POSIX systems this is largely derived from an available terminfo database, but there are some newish capabilities that are not yet described by the majority of terminfo installations and thus have some additional handling in this struct.

Implementations

Detect the capabilities of the terminal and return the Capability object holding the outcome. This function inspects the environment variables to build up configuration hints.

Build a Capabilities object based on the provided ProbeHints object.

Indicates how many colors are supported

Does the terminal support SIXEL graphics?

Does the terminal support the iTerm2 image protocol? See https://www.iterm2.com/documentation-images.html

Returns a reference to the loaded terminfo, if any.

Whether bracketed paste is supported

Whether mouse reporting is supported

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.