Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3C3B1CD2.3060307@ece.gatech.edu>
Date: Tue, 08 Jan 2002 11:22:42 -0500
From: Charles Wilson <cwilson@ece.gatech.edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: "Gerrit P. Haase" <freeweb@nyckelpiga.de>
CC: Kent Perrier <kent.perrier@oneco.net>, cygwin@cygwin.com
Subject: Re: cygwin console
References: <20020108113417.A8402@infosat.net> <voil3u43q7h599q27ubga9phmh8cm57182@4ax.com> <6374-Tue08Jan2002111758+0000-starksb@ebi.ac.uk> <1126157253.20020108122424@familiehaase.de> <5519-Tue08Jan2002114553+0000-starksb@ebi.ac.uk> <3C3B005B.D121F781 <3C3B0760.8020604@syntrex.com> <3C3B0A31.1040604@oneco.net> <4120334960.20020108162042@familiehaase.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Gerrit P. Haase wrote:


>>Humm.  I comment out the bash line and I add the rxvt line and I get the 
>>"guick flash."  I do have rxvt installed, so what have I done wrong?
>>
> 
> Windows98?
> 
> What happens if you just double click rxvt.exe from explorer?
> I get a whit shell with black font scrollbar at the left.
> 
> Or was it DISPLAY which needs to be exported, though it isn't
> there if I call rxvt directely:


rxvt operates in two modes:
   1) if DISPLAY=:0
      run in "MS Windows" mode -- don't try to use X routines
   2) if DISPLAY=anything else (such as 127.0.0.1:0)
      run in X mode -- you need an Xserver for this to work

 
> Try adding:
> export DISPLAY=127.0.0.1:0.0
> or this:
> export DISPLAY=:0
> 
> to your ~/.bashrc or /etc/profile


No, that won't help.  Rxvt starts before the bash shell, so you can't 
set DISPLAY from bash startup scripts.  (I'm assuming that you are 
double-clicking a shortcut that starts rxvt).  You need to change the 
DISPLAY settings in (My Computer->Properties->Environment NT/2K) or 
(autoexec.bat W9x/Me).

But people REALLY get annoyed if you mess with their autoexec, so there 
IS another option:

add '-display :0' to your rxvt command line.

--Chuck


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

