Expand description
A pane’s connection, parsed from its connection block meta.
local(or empty): this machine.wsl://<distro>: a WSL distribution on this Windows machine.- anything else: an SSH destination as the user writes it for
ssh:host,user@host,user@host:port, or aHostalias from~/.ssh/config. The systemsshresolves it (spec §3.1).
The SSH destination ends up in an ssh argv, so it is validated here: one
starting with - would be read by ssh as an option (-oProxyCommand=...
runs a local command), and whitespace or control characters have no place in
a destination. The launch also puts -- before it; this is the first line.
Structs§
- SshDest
- A validated SSH destination:
host,user@hostoruser@host:port.
Enums§
- Conn
Target - Where a pane’s shell runs.
Constants§
- MAX_
CONN_ 🔒NAME_ LEN - Longest connection name accepted: a hostname is at most 253 characters, plus a user and a port.
- SHELL_
CHARS 🔒 - Characters that only mean something to a shell, refused in an SSH
destination (see
parse_ssh). - WSL_
PREFIX - Prefix of a WSL connection name.
Functions§
- parse_
port 🔒 - parse_
ssh 🔒 - parse_
wsl 🔒 - same_
connection - Whether two connection names mean the same place:
""andlocaldo, and WSL distro names compare without case, as Windows treats them. - split_
port 🔒