Module osc

Module osc 

Source
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 ] ;