From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20732 invoked by alias); 2 Jan 2009 22:33:29 -0000 Received: (qmail 20724 invoked by uid 22791); 2 Jan 2009 22:33:27 -0000 X-Spam-Check-By: sourceware.org Received: from pool-96-233-71-199.bstnma.fios.verizon.net (HELO cgf.cx) (96.233.71.199) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Jan 2009 22:32:52 +0000 Received: from ednor.cgf.cx (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 897B713C028 for ; Fri, 2 Jan 2009 17:32:41 -0500 (EST) Received: by ednor.cgf.cx (Postfix, from userid 201) id 679162B35E; Fri, 2 Jan 2009 17:32:41 -0500 (EST) Date: Fri, 02 Jan 2009 22:33:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: MinTTY Message-ID: <20090102223241.GA11766@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <495917BA.1090401@gmail.com> <0E77A4429F494644A9C7CB6F6F3D2125@DFW5RB41> <0105D5C1E0353146B1B222348B0411A211B41DD8@NIHMLBX02.nih.gov> <20081230165106.GA5230@ednor.casa.cgf.cx> <20090101180355.GA30772@ednor.casa.cgf.cx> <495E90D9.4080004@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <495E90D9.4080004@gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-01/txt/msg00039.txt.bz2 On Fri, Jan 02, 2009 at 10:10:33PM +0000, Andy Koppe wrote: > Christopher Faylor wrote: >> I finally played around with this a little. It is nice. It reminds >> me a little bit of Console2 - http://console.sourceforge.net/. >> One thing that Console2 does is provide a true "console" interface which >> doesn't rely on anything like Cygwin's ptys. > > On the other hand, it isn't actually a terminal emulator as such. What it > does do is to put a nicer interface on the Windows console, so for Cygwin > programs you still get Cygwin's console-based terminal. That's what I meant by the "console" interface. >>Console2 apparently uses a polling interface over a captive invisible >>console to fool programs into thinking that they are running in a real >>Windows console. > >It accesses the console's screen contents through Win32's >GetConsoleScreenBufferInfo() and displays it in its own window while >hiding the actual console. I can't see a way to combine this sort of >approach with ptys. If you have a captured interface then a windows console could be treated like a pty. Getting more than one of these per process would be tricky though and it might not be capable of being a general pty interface. >>On further reflection, I think that the fact that mintty uses cygwin >>ptys may be a show stopper as far as making it the default is >>concerned. I don't think we can have the default command line >>interface misbehave when it runs some standard Windows programs, like, >>if memory serves, the "NET" command in some cases. > >As things stand, it's a choice between full support either for Windows >console applications or for Unix terminal applications. I'd guess that >the latter is more important to most Cygwin users. Not my call though. The fact that windows apps don't like cygwin ptys is why we never made rxvt the standard interface. What would be nice is to give the user some easy way to decide which they want. We would, of course, still get people complaining about whichever choice they made, though. >>Also, the mouse behavior isn't like xterm or xterm imitators so it >>wouldn't necessarily be intuitive for someone coming over from linux. >>I'm sure that could be changed though. Did I miss a configuration for >>mouse and cut/paste behavior? > >Middle-click paste is always available, and copy-on-select and >right-click extend can be enabled on the Mouse page of the options. >(In the latter case, the menu is still available via Shift-right-click >and the context menu key. The options can also be found in the window >menu.) Yeah, sorry. I found out after I sent the email that I'd previously installed some "nifty" software (Microsoft's intellipoint) which was interfering with my mouse clicks. Middle-click wasn't working right. Now it is. >>Oh, and if you want to get rid of the console window when mintty is >>started from a bat file, I think FreeConsole() would do the trick. > >I'll give that a try. Perhaps I should make it a command line option >if I can get it to work? Maybe. On further thought, it's possible that FreeConsole won't do the trick either. A combination of FreeConsole + restarting the process with CreateProcess might be needed. Maybe it isn't worth the effort. cgf -- 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/