M
Mickael Faivre-Macon
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.
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.