sshlib
sshlib copied to clipboard
How to send command in PTY shell
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?