ssh2 icon indicating copy to clipboard operation
ssh2 copied to clipboard

I couldn't get instructions when prompts is empty

Open HubuHito opened this issue 9 months ago • 4 comments

The server returned a empty prompt, but I wanted to get the instructions and show them.

I noticed that the prompts in the code were returned directly for empty prompts

Is there any good solution that I can't modify the server side for the time being

Image

HubuHito avatar Mar 06 '25 03:03 HubuHito

Why would you want to show instructions for something that doesn't exist?

mscdex avatar Mar 06 '25 06:03 mscdex

Why would you want to show instructions for something that doesn't exist?

instructions is exist, but prompts is null, I want to capture this instruction

HubuHito avatar Mar 06 '25 12:03 HubuHito

instructions is exist, but prompts is null, I want to capture this instruction

Right, I get that. The instructions are supposed to be for the prompts. If there are no prompts, what use are the instructions?

mscdex avatar Mar 06 '25 13:03 mscdex

instructions is exist, but prompts is null, I want to capture this instruction

Right, I get that. The instructions are supposed to be for the prompts. If there are no prompts, what use are the instructions?

yes, Earlier versions (0.8.9) were captured using keyboard-interactive events. The server sent this to me as a tips, which is obviously inappropriate, but I can't change it now. Is there any way I can customize a handler

HubuHito avatar Mar 07 '25 02:03 HubuHito