Skip to main content

Crate term

Crate term 

Source
Available on crate feature term only.
Expand description

Completion-based terminal support for the Compio runtime.

This crate keeps Crossterm’s event data model and command types. It replaces Crossterm’s threaded event reader with a local Compio event::EventStream and writes queued commands through Compio io::AsyncWrite sinks. Event reading never starts a helper thread.

Crossterm’s cursor, style, terminal, and terminal detection modules are re-exported unchanged. Crossterm’s synchronous command execution traits and macros are replaced by CommandQueue, Commands, and Queueable.

Modules§

cursor
A module to work with the terminal cursor
event
Asynchronous terminal events.
style
A module to apply attributes and colors on your text.
terminal
A module to work with the terminal.
tty
A module to query if the current instance is a tty. Making it a little more convenient and safe to query whether something is a terminal teletype or not. This module defines the IsTty trait and the is_tty method to return true if the item represents a terminal.

Structs§

CommandQueue
A buffered queue of terminal commands for a Compio asynchronous writer.
RawMode
A guard that keeps the terminal in raw mode until it is dropped.

Traits§

Command
An interface for a command that performs an action on the terminal.
Commands
An ordered batch of terminal commands.
Queueable
Starts an asynchronous command queue for a writer.