From owner-freebsd-questions Sun Sep 15 8:20:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1B3137B400 for ; Sun, 15 Sep 2002 08:20:28 -0700 (PDT) Received: from mailb.telia.com (mailb.telia.com [194.22.194.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7DD143E65 for ; Sun, 15 Sep 2002 08:20:27 -0700 (PDT) (envelope-from erikt@midgard.homeip.net) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailb.telia.com (8.12.5/8.12.5) with ESMTP id g8FFKQbo007195 for ; Sun, 15 Sep 2002 17:20:26 +0200 (CEST) X-Original-Recipient: Received: from falcon.midgard.homeip.net (h62n2fls20o913.telia.com [212.181.163.62]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id RAA13733 for ; Sun, 15 Sep 2002 17:20:24 +0200 (CEST) Received: (qmail 70120 invoked by uid 1001); 15 Sep 2002 15:20:23 -0000 Date: Sun, 15 Sep 2002 17:20:23 +0200 From: Erik Trulsson To: Frank Heitmann Cc: freebsd-questions@freebsd.org Subject: Re: Starting programs in X Message-ID: <20020915152022.GA70101@falcon.midgard.homeip.net> Mail-Followup-To: Frank Heitmann , freebsd-questions@freebsd.org References: <20020915161638.A866@host1.myhost.mydomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020915161638.A866@host1.myhost.mydomain> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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.) -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message