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: wires PTY + vt100 + queue + ui + input together.
input
Input handling — line editor for the queue input buffer + key routing decisions for the app.
osc133
Streaming detector for OSC 133 prompt-marker escape sequences.
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.
shell_integration
Shell integration: emits OSC 133 prompt markers so cmdq can detect when the inner shell is between commands vs. running one.
ui
ratatui rendering: top region paints the inner shell (via vt100), bottom region paints the queue panel + input line.