Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 2002 17:20:23 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Frank Heitmann <fh31415@gmx.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Starting programs in X
Message-ID:  <20020915152022.GA70101@falcon.midgard.homeip.net>
In-Reply-To: <20020915161638.A866@host1.myhost.mydomain>
References:  <20020915161638.A866@host1.myhost.mydomain>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 15, 2002 at 04:16:38PM +0200, Frank Heitmann wrote:
> Hello everybody!
> 
> When I start 'emacs' in an xterm window it automatically
> opens a new window. I would like this behaviour also for
> other programs (slrn and mutt for example).
> 
> At this time I do: "xterm -geometry 100x50 -e slrn &",
> but I would like to enter just slrn (like I have just to
> enter emacs) and  I would also like to read the geometry
> setting from .Xresources (like emacs does).
> 
> I could create a small script with just the above line in
> it to start slrn, but I believe there is another way to do
> this - one I do not know yet :)

When emacs open a new window it is emacs itself that detects that it is
running under X and opens a new window.
slrn (and mutt) don't know anything about X, and in particular they
don't know how to open a new window (or anything else about windows for
that matter).

This means that creating a script as wrapper around slrn is in fact the
only way to do it.
(There is actually another way, which is to add X support to slrn, but
this is a lot of work and definitely non-trivial.)


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020915152022.GA70101>