I am trying to send commands to bash and recieve text back. What is the most efficient way to do this? Also say for example i run a command like telnet or something that requires an input i.e username how would i deliver this, as at the minute if i run such a command my app hangs presumably because the ui is waiting to be updated. This is what I have at the moment: