Skip to main content

Crate urushi_terminal

Crate urushi_terminal 

Source
Expand description

Backend-independent terminal contracts and target-specific inspection for the Urushi ecosystem.

This crate owns vocabulary shared by terminal surfaces without depending on another Urushi workspace crate. It does not choose rendering policy, perform layout, or render a view.

§Cargo features

  • crossterm enables the portable Crossterm backend. The native backend is available without a feature on Unix only.

Modules§

backend
Physical implementations of the Urushi terminal contracts.

Structs§

ControlString
Printable ASCII payload carried by an ECMA-48 control string.
HyperlinkParameter
One OSC 8 hyperlink parameter.
InvalidControlString
The location of a non-printable-ASCII byte rejected from a control-string payload.
InvalidTerminalText
The location of a control character rejected from terminal text.
KeyEvent
One normalized key event.
KeyEventState
Additional state reported with an enhanced keyboard event.
KeyboardEnhancementFlags
Extra information requested from terminals implementing an enhanced keyboard protocol.
Modifiers
The keyboard modifiers held for one input event.
MouseEvent
One normalized mouse event at a zero-based cell position.
PixelSize
Position
SessionError
A session-entry failure and the first restoration failure, if any.
SessionOptions
Terminal modes acquired by a session.
TerminalBackground
An RGB background color reported by a terminal.
TerminalCapabilities
Rendering features positively confirmed by a terminal query or supplied by an explicitly configured backend.
TerminalGraphicsProtocols
A set of terminal graphics protocols supported by a terminal.
TerminalHyperlink
A hyperlink attached to subsequently printed text.
TerminalInfo
Information observed from one terminal output handle.
TerminalSession
A guard for every terminal state successfully acquired during entry.
TerminalSize
The visible dimensions of a terminal in character cells.
TerminalStyle
The complete physical text style applied to terminal output.
TerminalText
Printable terminal text containing no control characters.
TextAttributeIter
Iterator over the attributes present in a TextAttributes value.
TextAttributes
A set of terminal text attributes with no duplicates or ordering.
Underline
An underline and its optional color independent of the foreground.
UnderlineStyles
A set of underline shapes supported by a terminal.
WindowSize
Character-cell dimensions and optional pixel geometry for a terminal window.

Enums§

ClearRegion
A logical region of the terminal buffer to clear.
Color
A color addressable by terminal text commands.
ColorLevel
The color fidelity a terminal can display.
Command
One semantic terminal control or text-output operation.
CursorAppearance
The cursor appearance requested from the terminal.
CursorMove
A cursor movement expressed independently of an escape-sequence API.
Event
One event read from an interactive terminal.
FocusChange
KeyCode
A backend-independent terminal key.
KeyKind
The transition represented by a key event.
MediaKeyCode
ModifierKeyCode
MouseButton
MouseKind
A normalized mouse action.
TerminalDetection
Whether one output handle is attached to a terminal.
TerminalGraphicsProtocol
A terminal graphics protocol that can display raster images.
TextAttribute
One independently selectable terminal text attribute.
UnderlineStyle
The shape of an underline drawn by the terminal.

Traits§

CommandWriter
Writes backend-independent terminal commands in caller-selected order.
EventSource
Blocking and non-blocking reads from one normalized event source.
KeyboardEnhancementQuery
Detects whether enhanced keyboard protocol negotiation is available.
RawModeControl
Process-side terminal modes that cannot be expressed as terminal commands.
TerminalBackend
A complete interactive terminal connection.
TerminalOutput
A terminal output sink whose queued operations can be made visible.
TerminalQuery
Synchronous inspection of terminal state.

Functions§

detect