From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9v?= =?ISO-8859-1?Q?ue?=) Date: 2008-08-18T20:41:41+09:00 Subject: emulating an ANSI terminal ? I'd like to emulate an ANSI terminal from Ruby[Cocoa] using ssh. Do you know of gem helper for that purpose ? For the time being, I'm able to emulate a pseudo-terminal connection even if ssh answers : Pseudo-terminal will not be allocated because stdin is not a terminal. However, when executing a remote command, i never knows when the answer ended. I've found some kind of workaround executing another command, like that: ssh=IO.popen("ssh -p 2222 root@#{TT_IP} 2>&1","r+") ssh.puts aCommand sleep 0.1 ssh.puts "echo END_OF_COMMAND" then, from "END_OF_COMMAND" i know when to stop #gets : output=[] while(line=ssh.gets) do break if /END_OF_COMMAND/===line output<