From: Mickael Faivre-Macon Date: 2006-10-08T02:15:16+09:00 Subject: ruby/GTK : Embedded terminal or redirecting process output Hi, Using ruby-gnome2 (gtk) I'd like to embed a terminal in a window, or redirect the output of a child process into a text editor. Something like sbtn.signal_connect("pressed") { system('ls') } ... launch the command 'ls' but is not portable and I don't know how to redirect the output into a gtk text editor, not in the original terminal window. Something like sbtn.signal_connect("pressed") { lsproc = IO.popen('ls') p Process.waitpid(lsproc.pid) p $? } ... is portable, but still does not redirect the output. Could someone give me a pointer to begin with ? Thanks, Mickael.