2009-01-25 klockan 16:43 skrev Ignacio Butler:
> On Sun, Jan 25, 2009 at 8:58 AM, Wouter Bolsterlee <wbolster gnome org> wrote:
> > 2009-01-25 klockan 07:16 skrev Ignacio Butler:
> >> If I do
> >> vte_terminal_fork_command(w, "vim", NULL, NULL, ".", FALSE, FALSE, FALSE);
> >> Vim is executed and i can interact with it. But if I run a program
> >> like "ls", which ends after directory listing, no output is shown, no
> >> matter what I do.
> >> How I can show output of programs that ends? Is this behavior normal?
> > Perhaps the gnome-terminal code that provides the "do not close window when
> > command exits" behaviour can serve as inspiration for you.
> I've set gnome-terminal to run "ls ~/" instead shell and no close
> window after command exit and I had the same result: no output shown
> I'll try to implement this functionallity using pipes (or something
> like that) instead the vte.
Another approach would be to execute a command like this in the VTE widget:
sh -c "'YOUR COMMAND LINE GOES HERE'; read;"
In this case the spawned shell will wait for the user to hit Enter (or
Ctrl-C or Ctrl-D) to exit.
> Thanks for the advice!
You're welcome.
— Wouter
Attachment:
signature.asc
Description: Digital signature