Re: How to open a standalone xterm

2009-10-27 Thread Joel Gwynn
So it looks like if I first start up the multiwindow window manager
like so: "xwin -multiwindow &", then I can run xterm, but I have to
specify the display.  What's the typical way of automating this?

On Tue, Oct 27, 2009 at 10:19 PM, Joel Gwynn  wrote:
> I know I've done this before, but I just can't get it to work on this
> new computer.  It's running Windows 7 starter.  I want to run xterm
> w/o running startx, ie I just want to open an xterm in windows, but I
> get:
>
> $ xterm
> xterm Xt error: Can't open display:
> xterm:  DISPLAY is not set
>
> If I specify DISPLAY:
> $ xterm -display localhost:0.0
> xterm Xt error: Can't open display: localhost:0.0
> xterm:  DISPLAY is not set
>
> TIA,
> Joel
>

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: How to open a standalone xterm

2009-10-27 Thread Larry Hall (Cygwin X)

On 10/27/2009 11:02 PM, Joel Gwynn wrote:

So it looks like if I first start up the multiwindow window manager
like so: "xwin -multiwindow&", then I can run xterm, but I have to
specify the display.  What's the typical way of automating this?


startxwin.bat or startxwin.sh.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: How to open a standalone xterm

2009-10-28 Thread Joel Gwynn
Duh.  Guess I need more sleep :)

Thanks!

On Wed, Oct 28, 2009 at 12:10 AM, Larry Hall (Cygwin X)
 wrote:
> On 10/27/2009 11:02 PM, Joel Gwynn wrote:
>>
>> So it looks like if I first start up the multiwindow window manager
>> like so: "xwin -multiwindow&", then I can run xterm, but I have to
>> specify the display.  What's the typical way of automating this?
>
> startxwin.bat or startxwin.sh.
>
>
> --
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 216 Dalton Rd.                          (508) 893-9889 - FAX
> Holliston, MA 01746
>
> _
>
> A: Yes.
>> Q: Are you sure?
>>> A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://x.cygwin.com/docs/
> FAQ:                   http://x.cygwin.com/docs/faq/
>
>

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: How to open a standalone xterm

2009-10-28 Thread Joel Gwynn
And now, sporadically, when I run startxwin.sh, sometimes it works, ie
opens up the xterm, but sometimes some windows open, with text that I
can't read quickly enough, then go away.  If I close Xwin and try
again, sometimes it will work, mostly not.

I don't see anything amiss in /var/log/XWin.0.log.  How to troubleshoot?

On Wed, Oct 28, 2009 at 9:01 AM, Joel Gwynn  wrote:
> Duh.  Guess I need more sleep :)
>
> Thanks!
>
> On Wed, Oct 28, 2009 at 12:10 AM, Larry Hall (Cygwin X)
>  wrote:
>> On 10/27/2009 11:02 PM, Joel Gwynn wrote:
>>>
>>> So it looks like if I first start up the multiwindow window manager
>>> like so: "xwin -multiwindow&", then I can run xterm, but I have to
>>> specify the display.  What's the typical way of automating this?
>>
>> startxwin.bat or startxwin.sh.
>>
>>
>> --
>> Larry Hall                              http://www.rfk.com
>> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
>> 216 Dalton Rd.                          (508) 893-9889 - FAX
>> Holliston, MA 01746
>>
>> _
>>
>> A: Yes.
>>> Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
> Q: Why is top posting annoying in email?
>>
>> --
>> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>> Problem reports:       http://cygwin.com/problems.html
>> Documentation:         http://x.cygwin.com/docs/
>> FAQ:                   http://x.cygwin.com/docs/faq/
>>
>>
>

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



RE: How to open a standalone xterm

2009-10-28 Thread Mike Ayers
> From: cygwin-xfree-ow...@cygwin.com [mailto:cygwin-xfree-
> ow...@cygwin.com] On Behalf Of Joel Gwynn
> Sent: Wednesday, October 28, 2009 8:27 AM


> And now, sporadically, when I run startxwin.sh, sometimes it works, ie
> opens up the xterm, but sometimes some windows open, with text that I
> can't read quickly enough, then go away.  If I close Xwin and try
> again, sometimes it will work, mostly not.

You're not running startxwin twice, right?  That won't work - you must 
run the xterm command from an existing xterm, a cygwin window, or the xterm 
icon in the start menu (which can be copied to the quicklaunch bar).

Also, try running bash in an existing xterm to see if the problem is in 
your .bashrc, i.e. not with xterm or X.


HTH,

Mike



RE: How to open a standalone xterm

2009-10-28 Thread Reid Thompson
On Wed, 2009-10-28 at 11:49 -0700, Mike Ayers wrote:
> > From: cygwin-xfree-ow...@cygwin.com [mailto:cygwin-xfree-
> > ow...@cygwin.com] On Behalf Of Joel Gwynn
> > Sent: Wednesday, October 28, 2009 8:27 AM
> 
> 
> > And now, sporadically, when I run startxwin.sh, sometimes it works, ie
> > opens up the xterm, but sometimes some windows open, with text that I
> > can't read quickly enough, then go away.  If I close Xwin and try
> > again, sometimes it will work, mostly not.
> 
>   You're not running startxwin twice, right?  That won't work - you must 
> run the xterm command from an existing xterm, a cygwin window, or the xterm 
> icon in the start menu (which can be copied to the quicklaunch bar).
> 
>   Also, try running bash in an existing xterm to see if the problem is in 
> your .bashrc, i.e. not with xterm or X.
> 
> 
>   HTH,
> 
> Mike
> 

test this..

in startxwin.sh or startxwin.bat ( whichever one you're calling to start
X ), between the call to start Xwin and the call to start the xterm, add


sleep 5

if that gets you an xterm every time, then decrement 5 until failure,
leave the call in with failure + 1

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: How to open a standalone xterm

2009-10-28 Thread Joel Gwynn
Ha!  That seems to do it.  Although I also have to wait a bit between
closing the xwin window and restarting, but that's not so bad.  I
guess there's some process that takes awhile to exit.

Thanks,
Joel

On Wed, Oct 28, 2009 at 2:58 PM, Reid Thompson  wrote:
> On Wed, 2009-10-28 at 11:49 -0700, Mike Ayers wrote:
>> > From: cygwin-xfree-ow...@cygwin.com [mailto:cygwin-xfree-
>> > ow...@cygwin.com] On Behalf Of Joel Gwynn
>> > Sent: Wednesday, October 28, 2009 8:27 AM
>>
>>
>> > And now, sporadically, when I run startxwin.sh, sometimes it works, ie
>> > opens up the xterm, but sometimes some windows open, with text that I
>> > can't read quickly enough, then go away.  If I close Xwin and try
>> > again, sometimes it will work, mostly not.
>>
>>       You're not running startxwin twice, right?  That won't work - you must 
>> run the xterm command from an existing xterm, a cygwin window, or the xterm 
>> icon in the start menu (which can be copied to the quicklaunch bar).
>>
>>       Also, try running bash in an existing xterm to see if the problem is 
>> in your .bashrc, i.e. not with xterm or X.
>>
>>
>>       HTH,
>>
>> Mike
>>
>
> test this..
>
> in startxwin.sh or startxwin.bat ( whichever one you're calling to start
> X ), between the call to start Xwin and the call to start the xterm, add
>
>
> sleep 5
>
> if that gets you an xterm every time, then decrement 5 until failure,
> leave the call in with failure + 1
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://x.cygwin.com/docs/
> FAQ:                   http://x.cygwin.com/docs/faq/
>
>

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: How to open a standalone xterm

2009-10-28 Thread Reid Thompson

Joel Gwynn wrote:

Ha!  That seems to do it.  Although I also have to wait a bit between
closing the xwin window and restarting, but that's not so bad.  I
guess there's some process that takes awhile to exit.


possibly having to wait for the X server socket to completely free up between 
between shutdown and restart

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: How to open a standalone xterm

2009-10-29 Thread Jon TURNEY

On 28/10/2009 13:01, Joel Gwynn wrote:
> On Wed, Oct 28, 2009 at 12:10 AM, Larry Hall (Cygwin X) wrote:
>> On 10/27/2009 11:02 PM, Joel Gwynn wrote:
>>>
>>> So it looks like if I first start up the multiwindow window manager
>>> like so: "xwin -multiwindow&", then I can run xterm, but I have to
>>> specify the display.  What's the typical way of automating this?
>>
>> startxwin.bat or startxwin.sh.
>
> Duh.  Guess I need more sleep :)

We even put an item on the start menu that runs that for you :-)

On 28/10/2009 18:49, Mike Ayers wrote:

On Behalf Of Joel Gwynn
Sent: Wednesday, October 28, 2009 8:27 AM



And now, sporadically, when I run startxwin.sh, sometimes it works, ie
opens up the xterm, but sometimes some windows open, with text that I
can't read quickly enough, then go away.  If I close Xwin and try
again, sometimes it will work, mostly not.


You're not running startxwin twice, right?  That won't work - you must 
run the xterm command from an existing xterm, a cygwin window, or the xterm 
icon in the start menu (which can be copied to the quicklaunch bar).


Hmm... startxwin.bat invokes Xwin with -silent-dup-error, so it should have 
the effect of just starting another Xterm if the X server is already running.


This might be construed as a feature :-)


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/