Skip to main content

Crate blit_remote

Crate blit_remote 

Source

Structs§

CallbackRenderer
CellStyle
Dom
FrameState
PtyListEntry
Rect
SearchResultEntry
TerminalState

Enums§

Color
Node
ServerMsg

Constants§

C2S_ACK
C2S_CLIENT_METRICS
C2S_CLOSE
C2S_CREATE
C2S_CREATE2
Generic create: [0x18][nonce:2][rows:2][cols:2][features:1][tag_len:2][tag:N][…optional fields] Features: bit 0 = has src_pty_id (2 bytes after tag), bit 1 = has command (remaining bytes after src_pty_id if present) Server responds with S2C_CREATED_N using the same nonce.
C2S_CREATE_AT
C2S_CREATE_N
C2S_DISPLAY_RATE
C2S_FOCUS
C2S_INPUT
C2S_MOUSE
Mouse event: [0x06][pty_id:2][type:1][button:1][col:2][row:2] type: 0=down, 1=up, 2=move button: 0=left, 1=mid, 2=right, 3=release, 64=wheel_up, 65=wheel_down The server generates the correct escape sequence based on mouse_mode and mouse_encoding.
C2S_RESIZE
Desired viewport size(s): [0x01][pty_id:2][rows:2][cols:2]… Clients may batch multiple PTY resize entries in one message. The server mediates these per-client desired sizes into each PTY’s effective size. A rows, cols pair of 0, 0 clears this client’s desired size for that PTY.
C2S_RESTART
Restart an exited PTY: [0x07][pty_id:2] Server spawns a new shell in the same PTY slot, preserving the pty_id.
C2S_SCROLL
C2S_SEARCH
C2S_SUBSCRIBE
C2S_UNSUBSCRIBE
CELL_SIZE
CREATE2_HAS_COMMAND
CREATE2_HAS_SRC_PTY
FEATURE_CREATE_NONCE
FEATURE_RESIZE_BATCH
FEATURE_RESTART
ROW_FLAG_WRAPPED
Per-row flag: this row’s content continues on the next row (line wrap).
S2C_CLOSED
S2C_CREATED
S2C_CREATED_N
S2C_EXITED
The PTY’s subprocess has exited but the terminal state is retained. Clients can still read/scroll the last frame. Send C2S_CLOSE to dismiss.
S2C_HELLO
S2C_LIST
S2C_SEARCH_RESULTS
S2C_TITLE
S2C_UPDATE

Functions§

build_update_msg
msg_ack
msg_client_metrics
msg_close
msg_create
msg_create_at
Spawn a new PTY in the same working directory as src_pty_id.
msg_create_command
msg_create_n
msg_create_n_command
msg_create_tagged
msg_create_tagged_command
msg_display_rate
msg_focus
msg_hello
msg_input
msg_resize
msg_resize_batch
msg_scroll
msg_search
msg_subscribe
msg_unsubscribe
parse_server_msg