Skip to main content

Module ssh_pane

Module ssh_pane 

Source
Expand description

How a plain SSH pane ends (remote terminals spec §5.2; #4513).

A pane whose ssh had no connection, or lost it, is not a shell the user ended: it stays, with a line under ssh’s own reason, instead of closing as an exit does; Enter starts ssh again (a finished pane’s restart). srv stopping the pane itself (close, restart) makes ssh exit 255 too, and is not a lost connection.

Functions§

command 🔒
Pane block_id’s ssh (ssh_path) to dest, running cmd (cmd_args) in cwd there, sharing the channel’s connection to it. askpass_secret: an agent’s SSH shell, whose every ssh prompt goes to the user through the askpass bridge, never into this terminal, which the agent reads.
ended 🔒
An SSH pane’s ssh (to dest, on connection conn) ended with raw_exit_code. Tells the connection, and returns the line the pane shows when it stays because the connection is gone. stopped_by_srv: srv ended it itself (stop() and stop_for_replace() set the status before they signal the process).
write_note 🔒
Put text in pane block_id’s output (pane_note), after ssh’s own last words: the caller has let the output drain first.