Skip to main content

Crate cmdq

Crate cmdq 

Source
Expand description

Library facade for cmdq — exposed so integration tests in the tests/ directory and external tooling can use the same modules the binary uses.

Modules§

app
Top-level application: PTY + queue + bottom-panel painter.
cursor_tracker
Lightweight cursor-position tracker for direct PTY forwarding.
input
Input handling — line editor for the queue input buffer + key routing decisions for the app.
mode_detect
Streaming detector for the few CSI private-mode sequences cmdq cares about.
osc133
Streaming detector for OSC 133 prompt-marker escape sequences.
panel
Bottom-strip panel painter for cmdq.
pty
Thin wrapper around portable-pty: spawn the user’s shell in a pseudo terminal and expose the master side for read/write/resize.
queue
Queue data model + persistence.
session_lease
shell_integration
Shell integration: emits OSC 133 prompt markers so cmdq can detect when the inner shell is between commands vs. running one.