delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/10/19/02:13:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <7CD674FF54FBD21181D800805F57CD543A81FF@RED-MSG-44>
From: Stephan Mueller <smueller AT MICROSOFT DOT com>
To: "'Charles S. Wilson'" <cwilson AT ece DOT gatech DOT edu>,
John Buffington
<jbuff AT pacific DOT net>
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: RE: Console Resizer
Date: Mon, 18 Oct 1999 23:02:50 -0700
X-Mailer: Internet Mail Service (5.5.2650.21)

Why not have a desktop shortcut that points directly at bash.exe.  If you
want to do intialization stuff, put it in the bash initialization file of
your choice (e.g. .profile)?

stephan();


-----Original Message-----
From: Charles S. Wilson [mailto:cwilson AT ece DOT gatech DOT edu]
Sent: Monday, October 18, 1999 11:02 PM
To: John Buffington
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Console Resizer


Well, I have noticed the following:

*If* bash is started from within a pre-existing command.com window, then
resizing doesn't work. Normally, though, you don't start a command.com
session, do dos-stuff, then type 'bash' and do bash-stuff. However,
often you do start bash from a batchfile. Double-clicking the batch file
starts an instance of command.com, which executes the batch file. The
batch file then "does dos-stuff" and then executes 'bash'.

Conclusion, although I have not tested it: If you start bash from a
batch file (such as cygnus.bat) then resizing the console doesn't work.
My idea for a fix is, rather than using a batch file to set environment
vars and then start bash, is to use a wscript. "Windows Scripting Host"
is installed with IE5 and is part of Win98/NT2000. Here's an (untested)
attempt:

----bash.vbs----
Set WshShell = Wscript.CreateObject("Wscript.Shell")
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set WshProcEnv = WshShell.Environment("PROCESS")
Set objArgs = Wscript.Arguments
WshProcEnv.Item("HOME") = "c:\users\" & WshNetwork.UserName
WshProcEnv.Item("CYGWIN") = "tty binmode ntea"
If objArgs.Count < 1 then
        WshShell.Run ("c:\Dos\Style\Path\To\bash.exe")
Else
	Set objArgStr = ""
	For I = 0 to objArgs.Count - 1
		Set objArgStr = objArgStr & " " & objArgs(I)
	Next
        WshShell.Run ("c:\Dos\Style\Path\To\bash.exe " & objArgStr)
End If
------end------

--Chuck


John Buffington wrote:
> 
> I'm using cygwin 20.1 with Windows 98.
> My attempts to use your console resizer
> (I called it "resizeconsole") have had no
> effect on my bash window when executed
> from the bash command line. Am I missing
> something?
> 
> "No matter where you go, there you are." ......... Buckaroo Banzai
> 
> mailto:jbuff AT pacific DOT net

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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