This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 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: tweak to startxwin.bat


Andrew,

Interesting point.

I'll look into that.

Thanks,

Harold

> -----Original Message-----
> From: cygwin-xfree-owner@cygwin.com
> [mailto:cygwin-xfree-owner@cygwin.com]On Behalf Of Andrew G. Wilson
> Sent: Monday, March 18, 2002 10:02 AM
> To: cygwin-xfree@cygwin.com
> Subject: tweak to startxwin.bat
> 
> 
> Just a quick note to whoever looks after the startup .bat file:
> 
> You can use the dos %VAR% to set the /B switch or not, thereby reusing 
> the same commands for the nt/2000 as for 95/98.
> 
> cheers
> Andrew
> 
> 
> REM
> REM Use the /B switch only when we can positively confirm that the OS
> REM is Windows NT/2000.  Do not use the switch in any other case.  This
> REM should work fine, as it assumes we cannot use /B, except when a
> REM criteria is met.  A previous verion of this batch file assumed that
> REM we could use /B, except when some criteria was met; needless to say,
> REM that didn't work.
> REM
> 
> 	if "%OS%" == "Windows_NT" set USE_B=/B
> 
> REM Startup the X Server.
> 
> start %USE_B% XWin -screen 0 1152 864
> 
> REM Startup an xterm, using bash as the shell.
> 
> start %USE_B% xterm -sl 1000 -sb -rightbar -ms red -e /usr/bin/bash
> 
> REM Startup the twm window manager.
> 
> start %USE_B% twm
> 


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