This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin console


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]