Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <380C0958.E4F6259A@ece.gatech.edu> Date: Tue, 19 Oct 1999 02:02:00 -0400 From: "Charles S. Wilson" X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: John Buffington CC: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Console Resizer References: <199910190002 DOT RAA12520 AT pacific DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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