Struct mdcat::AnsiTerminal[][src]

pub struct AnsiTerminal<W: Write> { /* fields omitted */ }

A simple ANSI terminal with support for basic ANSI styles.

This represents most ordinary terminal emulators.

Methods

impl<W: Write> AnsiTerminal<W>
[src]

Create a new ANSI terminal for th given writer.

Write an OSC command to this terminal.

Write a CSI SGR command to this terminal.

See https://en.wikipedia.org/wiki/ANSI_escape_code#CSI_sequences.

Write an ANSI style to this terminal.

Trait Implementations

impl<W: Write> Terminal for AnsiTerminal<W>
[src]

The associated writer of this terminal.

Get a descriptive name for this terminal.

Get a writer for this terminal.

Whether this terminal supports styles.

Active a style on the terminal. Read more

Set a link to the given destination on the terminal. Read more

Set a jump mark on the terminal. Read more

Write an inline image from the given resource to the terminal. Read more

Auto Trait Implementations

impl<W> Send for AnsiTerminal<W> where
    W: Send

impl<W> Sync for AnsiTerminal<W> where
    W: Sync