delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/06/12:45:23

X-Spam-Check-By: sourceware.org
Date: Mon, 6 Feb 2006 12:45:00 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Bubba Jones <iambubba AT budweiser DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Bash Window Geometry
In-Reply-To: <20060206173428.19053.qmail@synacor.com>
Message-ID: <Pine.GSO.4.63.0602061238580.16620@access1.cims.nyu.edu>
References: <20060206160030 DOT 10549 DOT qmail AT synacor DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0602061209560 DOT 16620 AT access1 DOT cims DOT nyu DOT edu> <20060206173428 DOT 19053 DOT qmail AT synacor DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mon, 6 Feb 2006, Bubba Jones wrote:

> On Mon, 6 Feb 2006 12:13:43 -0500 (EST) Igor Peshansky <pechtcha AT XX DOT XXX DOT XXX> wrote:

While you're at it, <http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> > On Mon, 6 Feb 2006, Bubba Jones wrote:
> >
> > > Is it possible to tell the bash prompt where I want it positioned on
> > > my desktop?  Using X Windows I specify size and location with
> > > "--geometry". Is there anything comparable under MS Windows?
> >
> > First off, <http://cygwin.com/acronyms/#PCYMTWLL>.  Thanks.
>
> I think my mailer might be goofed...  I don't see an option for that.
> I'll fix it the ole fashioned way though with a manual CR/LF :) .

Good enough. :-)  You might want to complain to Anheuser-Busch about this
and the quoting, though...

> > Now, if you're starting bash from a shortcut (e.g., the one Cygwin
> > installation puts on your desktop), you can change shortcut parameters
> > to put the window anywhere you want (Properties->Layout->Window
> > position).
>
> Thanks, but I'm looking for something like the "--geometry"
> feature of X.  I want several bash windows on my desktop in
> strategic locations when I double-click a .bat.  I'm guessing
> that a .bat file can contain several calls to bash with the
> geometry pre-defined.

Yeah, I thought of adding that bash itself has no control over its
geometry -- after all, it's just a shell.  The geometry is specified by
the window that contains the shell (be it a console window or an
application window).  There may be a launcher program that sets those
(after all, if a shortcut can do it, there must be a command-line way,
right?), but I don't know of any.

> Right now my cygwin.bat file contains:
>
> @echo off
> cd \
> C:\Cygwin\bin\bash --rcfile /cygdrive/h/.bashrc -i
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Heh.  Two problems: (a) you're not starting a login shell, and (b) why do
you have /cygdrive/h as your home?  Sounds like your $HOME setting is
inconsistent with your /etc/passwd...

> Is there any way to have the call to bash set geometry?

As I said above, not to bash itself, but there might be a way of
controlling the position of the console window using some Windows means
(maybe a program in the Windows Resource kit?).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019