delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/02/17:10:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS,TVD_SPACED_SUBJECT_WORD3
X-Spam-Check-By: sourceware.org
Message-ID: <495E90D9.4080004@gmail.com>
Date: Fri, 02 Jan 2009 22:10:33 +0000
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
User-Agent: Thunderbird 2.0.0.18 (Windows/20081105)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: MinTTY
References: <495917BA DOT 1090401 AT gmail DOT com> <B156E7DDCF464660AEABAB84A01F365A AT DFW5RB41> <0E77A4429F494644A9C7CB6F6F3D2125 AT DFW5RB41> <0105D5C1E0353146B1B222348B0411A211B41DD8 AT NIHMLBX02 DOT nih DOT gov> <20081230165106 DOT GA5230 AT ednor DOT casa DOT cgf DOT cx> <20090101180355 DOT GA30772 AT ednor DOT casa DOT cgf DOT cx>
In-Reply-To: <20090101180355.GA30772@ednor.casa.cgf.cx>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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.

> 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.

> 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.

> 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.)

> I still think it would be a nice addition to the list of Cygwin
> packages.  It gets my +1 vote.

Thanks!

> 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?

Andy


--
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