sshlib icon indicating copy to clipboard operation
sshlib copied to clipboard

How to send command in PTY shell

Open Kwasow opened this issue 5 years ago • 0 comments

Hi,

I've managed to figure out how to start a shell using this library, but I don't know how to execute commands inside it (exactly as the connectbot app does).

I'm listening to stdout on one thread and the connection is active on a different one. The stdout's output is displayed in a TextView using a mono font.

I'd like to input a command through a dialog and execute it. I tried writing to stdin, but that's missing the "ENTER" signal of course.

Maybe the documentation on interacting with the shell should be expanded a bit?

Kwasow avatar Jun 11 '20 17:06 Kwasow