Expand description
Pure in-memory RMUX domain model state.
This crate models sessions, windows, panes, layout geometry, and exact target resolution without any OS, network, or process integration.
Re-exports§
pub use formats::format_skip_delimiter;pub use input::colour_join_rgb;pub use input::Colour;pub use input::GridAttr;pub use input::COLOUR_DEFAULT;pub use input::COLOUR_FLAG_256;pub use input::COLOUR_FLAG_RGB;pub use input::COLOUR_NONE;pub use input::COLOUR_TERMINAL;pub use style::colour_to_string;pub use style::parse_colour;pub use style::style_parse;pub use style::style_tostring;pub use style::ColourParseError;pub use style::Style;pub use style::StyleAlign;pub use style::StyleCell;pub use style::StyleDefaultType;pub use style::StyleList;pub use style::StyleParseError;pub use style::StyleRange;pub use style::StyleWidth;
Modules§
- command_
parser - tmux-compatible command tokenization and command-name lookup.
- command_
queue - tmux-style command queue data model.
- events
- Bounded event buffers and cursor accounting. Bounded event buffers used by live server subscribers.
- formats
- tmux-compatible format expansion engine.
- identity
- Identity vocabulary surface used by
rmux-coreconsumers. - input
- tmux-compatible VT parser state machine, CSI/ESC/OSC dispatch, and SGR. tmux-compatible VT parser state machine.
- style
- tmux-compatible style and colour parsing.
- tmux_
precedence - tmux-compatible option precedence normalization for command arguments.
Structs§
- Alert
Flags - Runtime alert flag bitset shared by window queue state and winlink-visible state.
- Break
Pane Options - Destination and behavioral flags for breaking a pane into its own window.
- Buffer
Store - Server-wide buffer store.
- Buffer
View - One borrow-only buffer view for list and format rendering.
- Command
Target Metadata - Per-command source and target lookup metadata.
- Command
Target Spec - Per-command source or target lookup metadata from frozen tmux
cmd_entry. - Environment
Store - In-memory storage for global and session-local environment values.
- Grid
Render Options - Rendering flags for tmux-style grid capture.
- Hook
Binding View - A rendered hook binding snapshot.
- Hook
Dispatch - The command payload emitted when a hook dispatches.
- Hook
SetOptions - Indexed mutation options for
set-hook. - Hook
Store - In-memory storage for tmux-style hook arrays.
- KeyBinding
- One bound key in a table.
- KeyBinding
Display - A listed key binding paired with derived display fields.
- KeyBinding
Store - Global key table store with tmux-style default snapshots.
- KeyBinding
Table - One key table.
- KeyBinding
Table Ref - A mutable table reference operation result.
- Kill
Pane Outcome - The result of removing one pane from a session window.
- Option
Mutation Outcome - Outcome for a successful option mutation.
- Option
Notification - A server-visible option mutation side effect.
- Option
Store - In-memory storage for supported RMUX option values.
- Pane
- Pure in-memory pane state.
- Pane
Geometry - A pane rectangle within terminal coordinates.
- PaneId
- Stable per-server pane identity (
%N). - Pane
Join Options - Behavioral flags for pane joins and moves.
- Pane
Swap Options - Behavioral flags for pane swaps.
- Rename
Buffer Outcome - Outcome details for a rename operation.
- Screen
- One pane screen, including scrollback, alternate-screen state, cursor position, modes, tab stops, and hyperlink storage.
- Screen
Capture Range - tmux-compatible capture bounds over history plus visible rows.
- Screen
Cell Ref - Borrowed read-only view of one rendered screen cell.
- Screen
Cell View - Read-only copy of one rendered screen cell for copy-mode consumers.
- Screen
Line View - Read-only copy of one absolute screen line for copy-mode consumers.
- Session
- A single detached RMUX session.
- Session
Id - Stable per-server session identity (
$N). - Session
Name - A validated RMUX session name.
- Session
Pane Target - A pane address within a single session.
- Session
Store - In-memory storage for all sessions owned by the server.
- SetBuffer
Outcome - The outcome of a
setoperation on the buffer store. - Show
Environment Entry - Renderable
show-environmententry with tmux-compatible flags and tombstones. - Target
Find Context - Current target context used for omitted targets and relative lookup.
- Target
Find Flags - Flag bitset matching tmux
CMD_FIND_*resolution controls. - Terminal
Passthrough - Opaque terminal command that must be forwarded to a capable outer terminal.
- Terminal
Screen - Live terminal screen fed by rmux-core’s private parser boundary.
- Transcript
- Per-pane line transcript bounded by the effective
history-limit. - Unresolved
Target - Raw command target text before tmux-style lookup.
- Utf8
Config - tmux-compatible runtime width configuration.
- Window
- A session-owned window whose pane order is independent from pane indices.
- Window
Id - Stable per-server window identity (
@N).
Enums§
- BoxLines
- Border drawing variants accepted by tmux
*-border-linesoptions. - Hook
Global Root - The global root used by a hook inventory query.
- KeyBinding
Sort Order - Sort orders accepted by
list-keys -O. - Lifecycle
Event - A typed server lifecycle event that may dispatch a registered hook.
- Option
Lookup Error - Error returned when resolving an option name before validating its value.
- Show
Options Mode - Option rendering mode for
show-options. - Target
Find Type - The target type requested by a tmux command’s
cmd_entry_flag. - Terminal
Passthrough Kind - Supported terminal passthrough protocol families.
Constants§
- ENVIRON_
HIDDEN - tmux-compatible hidden environment entry flag.
- KEYC_
ANY - Any key catch-all.
- KEYC_
BSPACE - Backspace key.
- KEYC_
BUILD_ MODIFIERS - Build-modifiers flag bit.
- KEYC_
CTRL - Ctrl modifier bit.
- KEYC_
CURSOR - Cursor flag bit.
- KEYC_
DRAGGING - Internal drag-in-progress sentinel key.
- KEYC_
IMPLIED_ META - Implied-meta flag bit.
- KEYC_
KEYPAD - Keypad flag bit.
- KEYC_
LITERAL - Literal flag bit.
- KEYC_
MASK_ FLAGS - Flag mask.
- KEYC_
MASK_ KEY - Key payload mask.
- KEYC_
MASK_ MODIFIERS - Modifier mask.
- KEYC_
MASK_ TYPE - Key type mask.
- KEYC_
META - Meta modifier bit.
- KEYC_
NONE - No key.
- KEYC_
SENT - Sent flag bit.
- KEYC_
SHIFT - Shift modifier bit.
- KEYC_
UNKNOWN - Unknown key.
- KEYC_
USER - User key range base.
- KEYC_VI
- Vi flag bit.
- LIST_
KEYS_ TEMPLATE - Default
list-keystemplate. - WINDOW_
ACTIVITY - Window alert queue bit for activity.
- WINDOW_
ALERTFLAGS - Combined window alert queue bits.
- WINDOW_
BELL - Window alert queue bit for bells.
- WINDOW_
SILENCE - Window alert queue bit for silence.
- WINLINK_
ACTIVITY - Persistent winlink alert bit for activity.
- WINLINK_
ALERTFLAGS - Combined persistent winlink alert bits.
- WINLINK_
BELL - Persistent winlink alert bit for bells.
- WINLINK_
SILENCE - Persistent winlink alert bit for silence.
Functions§
- alternate_
screen_ enter_ sequence - Returns the preferred alternate-screen enter sequence for
term. - alternate_
screen_ exit_ sequence - Returns the preferred alternate-screen exit sequence for
term. - command_
target_ metadata - Returns command target metadata for commands currently routed through the parsed queue.
- default_
global_ scope_ for_ option_ name - Returns the tmux-compatible global option tree for a string option name.
- encode_
paste_ bytes - Encodes bytes for tmux-style safe paste-buffer writes.
- fnmatch
- Returns whether
textmatches the tmux-style globpattern. - hook_
global_ root - Returns the global hook root where tmux stores a hook.
- key_
code_ is_ mouse_ move - Returns whether the key is a mouse-move key.
- key_
code_ lookup_ bits - Returns the key bits used for binding lookup.
- key_
code_ to_ bytes - Converts a key code into bytes suitable for the legacy direct PTY path.
- key_
string_ lookup_ key - Converts a key code into its canonical tmux string.
- key_
string_ lookup_ string - Converts a canonical key name into a tmux key code.
- option_
affects_ alerts - Returns whether a known option change may affect alert runtime state.
- option_
affects_ rendering - Returns whether a known option change may affect attached rendering.
- option_
name_ by_ name - Resolves a known option by name when the caller only accepts registered options.
- parse_
binding_ command_ tokens - Parses a
bind-keycommand payload from raw argv-style tokens. - render_
dec_ modes - Appends the DEC private interactive mode setters implied by
mode_bits(and the DECSCUSRcursor_style) toout. - render_
dec_ modes_ for_ snapshot - Appends a complete set of tracked terminal-mode transitions for a snapshot.
- resolve_
option_ name - Resolves a known option name using tmux-style aliasing and prefix matching.
- resolve_
option_ name_ typed - Resolves an option name and preserves typed lookup failures.
- text_
width - Returns the tmux-style display width of a string.
- truncate_
to_ width - Truncates a string to the requested display width.
- validate_
hook_ registration - Validates that rmux ships the requested hook and that it may be stored at the requested scope.
- validate_
hook_ scope - Validates that a hook may be stored at the requested scope.
- validate_
option_ mutation - Validates an option mutation against the legacy known-option registry.
- validate_
option_ name_ mutation - Validates an option mutation against the open string-keyed registry.
Type Aliases§
- KeyCode
- tmux-style 64-bit key code.