Struct mdcat::TerminalCapabilities
source · [−]pub struct TerminalCapabilities {
pub name: String,
pub style: Option<StyleCapability>,
pub links: Option<LinkCapability>,
pub image: Option<ImageCapability>,
pub marks: Option<MarkCapability>,
}
Expand description
The capabilities of a terminal.
Fields
name: String
How do we call this terminal?
style: Option<StyleCapability>
How the terminal supports basic styling.
links: Option<LinkCapability>
How the terminal supports links.
image: Option<ImageCapability>
How the terminal supports images.
marks: Option<MarkCapability>
How the terminal supports marks.
Implementations
sourceimpl TerminalCapabilities
impl TerminalCapabilities
sourcepub fn none() -> TerminalCapabilities
pub fn none() -> TerminalCapabilities
A terminal which supports nothing.
sourcepub fn ansi() -> TerminalCapabilities
pub fn ansi() -> TerminalCapabilities
A terminal with basic ANSI formatting only.
sourcepub fn iterm2() -> TerminalCapabilities
pub fn iterm2() -> TerminalCapabilities
Terminal capabilities of iTerm2.
sourcepub fn terminology() -> TerminalCapabilities
pub fn terminology() -> TerminalCapabilities
Terminal capabilities of Terminology.
sourcepub fn kitty() -> TerminalCapabilities
pub fn kitty() -> TerminalCapabilities
Terminal capabilities of Kitty.
sourcepub fn wezterm() -> TerminalCapabilities
pub fn wezterm() -> TerminalCapabilities
Terminal capabilities of WezTerm (Wez’s Terminal Emulator).
WezTerm is a GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust.
See https://wezfurlong.org/wezterm/ for more details.
sourcepub fn detect() -> TerminalCapabilities
pub fn detect() -> TerminalCapabilities
Detect the capabilities of the current terminal.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TerminalCapabilities
impl Send for TerminalCapabilities
impl Sync for TerminalCapabilities
impl Unpin for TerminalCapabilities
impl UnwindSafe for TerminalCapabilities
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more