public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: "Thomas Chadwick" <j_tetazoo@hotmail.com>
To: cygwin-xfree@cygwin.com
Subject: RE: Convenient script for starting an XFree86 xterm
Date: Tue, 02 Mar 2004 15:06:00 -0000	[thread overview]
Message-ID: <BAY8-F45xhFJpS1bS9r00029295@hotmail.com> (raw)

FYI - You might want to consider using /usr/X11R6/bin/run.exe (the DOS path 
being c:\cygwin\usr\X11R6\bin\run) in place of the 1-liner VBScript.  Makes 
things a wee bit cleaner, IMHO.

>From: ncokwqc02@sneakemail.com
>Reply-To: cygwin-xfree@cygwin.com
>To: cygwin-xfree@cygwin.com
>Subject: Convenient script for starting an XFree86 xterm
>Date: Mon, 1 Mar 2004 22:37:52 -0800
>
>I've seen some other postings on this subject recently, so I'm submitting
>this contribution as a potential starting point for others.
>
>I have convenient Windows desktop shortcuts to start up a Cygwin/Bash shell
>window and an RXVT/Bash shell window. I was looking for something similar 
>to
>start up a Cygwin/XFree86 xterm. Of course, I didn't want to generate
>multiple running copies of the 'XWin' server, nor did I want useless 
>Command
>prompt windows hanging around.
>
>Here's what I came up with. I make no claim to generality, robustness,
>cleverness, originality or anything else. It just works for me.
>
>
>It consists of three parts:
>
>1) A desktop shortcut with the following target:
>C:\WINNT\SYSTEM32\WSCRIPT.EXE "C:\cygwin\invisible.vbs"
>"C:\cygwin\XFree86xterm.bat"
>
>2) A VB shell script named 'C:\cygwin\invisible.vbs' containing the single
>line:
>CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0,
>False
>
>3) A DOS shell script named 'C:\cygwin\XFree86xterm.bat' containing the
>following lines:
>-------------------------------------------------------------------
>@echo off
>
>ps -ef | grep /usr/X11R6/bin/XWin > nul
>
>if ERRORLEVEL 1 (
>   start /DC:\cygwin\usr\X11R6\bin /B XWin -multiwindow -clipboard
>)
>
>set DISPLAY=localhost:0.0
>
>C:\cygwin\usr\X11R6\bin\xterm -fn 10x20 -sl 1000 -sb -leftbar -ms red -fg
>yellow -bg black -e /usr/bin/bash --login -i
>-------------------------------------------------------------------
>
>Description:
>- The shortcut starts the Windows scripting language, which runs the simple
>Visual Basic script.
>- The VB script runs the DOS shell script without generating a Command
>window.
>- The DOS shell script
>   - Starts 'XWin' with my preferred switches as a background process if no
>such process is already running,
>   - Sets DISPLAY to the 'localhost:0.0', which the 'xterm' will inherit, 
>and
>   - Starts a login bash shell in an XFree86 xterm with some decent extra
>settings.
>
>john
>

_________________________________________________________________
Get business advice and resources to improve your work life, from bCentral. 
http://special.msn.com/bcentral/loudclear.armx


             reply	other threads:[~2004-03-02 15:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-02 15:06 Thomas Chadwick [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-03-06 10:21 frederic bregier
2004-03-02 18:42 ncokwqc02
     [not found] <Pine.GSO.4.56.0402282039060.19703@slinky.cs.nyu.edu>
2004-03-02  6:38 ` ncokwqc02

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY8-F45xhFJpS1bS9r00029295@hotmail.com \
    --to=j_tetazoo@hotmail.com \
    --cc=cygwin-xfree@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).