Expand description
OSC (Operating System Command) encoding/decoding for terminal RPC messages.
Port of Go’s pkg/wshutil/wshutil.go — OSC escape sequence handling.
Constants§
- BEL
- BEL character (OSC terminator).
- DEFAULT_
INPUT_ CH_ SIZE - DEFAULT_
OUTPUT_ CH_ SIZE - Default channel buffer sizes.
- ESC
- Escape character.
- HEX_
CHARS 🔒 - Hex characters for encoding.
- ST
- String Terminator.
- WAVE_
OSC - OSC number for AgentMux client messages.
- WAVE_
SERVER_ OSC - OSC number for AgentMux server responses.
Functions§
- decode_
wave_ osc_ bytes - Decode a AgentMux OSC escape sequence, returning the payload bytes.
- encode_
wave_ osc_ bytes - Encode bytes as a AgentMux OSC escape sequence.
- get_
osc_ num - Get the OSC number from an OSC message.
- is_
wave_ osc - Check if bytes represent a AgentMux OSC message.
- make_
osc_ prefix - Make an OSC prefix: ESC ]
;