Xfce Forum

Sub domains
 

You are not logged in.

#26 2010-01-24 11:08:07

ManOfSteel
Member
Registered: 2005-10-06
Posts: 104

Re: How to keep xfce4-terminal open?

gnome_refugee wrote:

This thread's getting so long it's easy to forget previous posts! In my 2nd one I said "I can't get it to stay open. This is easy to do with the '-hold' option in xterm, so I'm hoping there's some little-known or clever command option for xfce4-terminal that does this as well."

I actually like good old xterm, and would use it as default terminal except it doesn't have tabs.

Which is why I proposed what I did (using Xterm). It seems the only alternative that really works for what you want. I'm not proposing that you ditch Terminal as default terminal emulator, I'm proposing that you use Xterm for that command only. I don't think the lack of tab support should be a big problem since you're only using Xterm for one command and not for interactive work.
Do what suits you best.

Offline

#27 2010-01-29 20:49:35

DMcCunney
Member
Registered: 2010-01-28
Posts: 21

Re: How to keep xfce4-terminal open?

gnome_refugee wrote:

There doesn't seem to be a '-hold' option for xfce4-terminal. Any other way I can keep it open with a single command?

The problem is that top runs continuously till you explicitly quit out of it.  "ps" runs and exits, and takes terminal with it, since it lacks a hold option.

Try a different approach.  Pipe the output of ps to something that doesn't terminate.

I created a tiny shell script called showps and made it executable.  It contains one line:

ps -ejH|less

I created a launcher on the Xfce desktop and named it "ps".  The command line was /home/dennis/showps.  Options were "Use startup notification" and "Run in terminal".

When the launcher is double-clicked, ps -ejH runs and pipes its output to the less pager.  Less runs in the terminal, and since it doesn't terminate till you explicitly tell it to, the terminal window stays open.

(This might work with a bash alias instead of a shell script.  I haven't tried it.)
______
Dennis

Offline

Board footer

Powered by FluxBB