mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
77e71f3ca4
Writing to stdin for `coder ssh` too early could result in the input being discarded. To work around this we add a new `ptytest` method called `ReadRune` that lets us read one character of output. This will indicate the command is ready to accept input. It could be one character of the prompt, or of the loading message waiting for connection to be established.