X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=uBGVS/FlHxHd8yTV
	tzG3yykx/W07ofp01xVCBCrtrknqNwztOEpyHGK3W3qweEx9KTrK2EXiYqhXbGbA
	ZRDX4yD344ugckcnVMNCcWwVjTdPmOFb00YZFC2YD9RiaZifSf7K/Mzq5nfYuSWU
	ZshxQFwLrTDkxAlvymxUWXu4WcQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=Z4ENOQ0llJgfSQlRkyeVmp
	rZQXQ=; b=M0NYFk+ApczBohE+dowcLINnU/ElKeqhlkCknv3UeLAmAsjr8Zamw/
	R7FAN4MtlhwEa3fmfU/9SLwh6JfBkvtHOHqxyI3eiH3mz7UMv+VvCbaUfiWPWQiU
	tusq/utVyCTuBKkpYmwKE01+jy05WLCy4V+PCRbsBNmOXdMjkKbGE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=AWL,BAYES_00,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE autolearn=no version=3.3.1
Message-id: <51BA891F.9040401@cygwin.com>
Date: Thu, 13 Jun 2013 23:08:15 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: pty issue causes 'screen' to hang when run from mintty as detached
References: <51B63D88.6000508@codespunk.com> <phscr81sr0kr02qenquh1s0na4n062u3so@4ax.com> <774dr8ld62oteq1o8ljpplpuptlleritqe@4ax.com>	<51B8F3E5.8070000@codespunk.com> <CA+VB3NSC-Oxb0_v+PDpA3v_uyw+7xSWq2HX0nwYHj7Ub3Dty+A@mail.gmail.com> <51BA3488.5050708@cygwin.com> <00f701ce688f$50c14ae0$f243e0a0$@malth.us>
In-reply-to: <00f701ce688f$50c14ae0$f243e0a0$@malth.us>
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit

On 6/13/2013 7:39 PM, gmt@malth.us wrote:
> On Thu, 13 Jun 2013, at 14:07, Larry Hall (Cygwin) thusly quipped:
>
>> On 6/13/2013 3:34 PM, Greg Turner wrote:
>>> On Wed, Jun 12, 2013 at 3:19 PM, Matt D. <matt@codespunk.com> wrote:
>>>> "the Windows console window you get through cygstart is not [a pty]"
>>>
>>> Ah, so /that's/ what I recently read uncomprehendingly!  Thanks for
>>> tracking down this concise explanation.  Assuming that's right, then,
>>> I wonder: what is it?
>>
>> What is what?  This Windows console?  It's... well, it's a... um, it's a
> Windows
>> console! ;-)
>>
>> But seriously, it's just something different that doesn't conform to the
>> definition of a PTY.  Windows doesn't have PTYs.  It uses the console
> instead.
>
> So, no win32-console-specific fhandler exists, and clones of the win32 stdio
> handles are simply passed through cygwin core to newlib and vice-versa
> without any funny-business?

I don't really grok what you mean by "funny-business"  But let me say
this.  Cygwin knows how to communicate with Windows consoles.  The code
is in fhandler_console.cc if you want to look at it.  But there is a
mismatch in capabilities and expectations between ptys and the Windows
console API.  That's why there is also fhandler_tty.cc.  The former does
its best to match the Linux/Unix world's expectations to what the Windows
console can provide (which is pretty limited).  The latter simply sidesteps
the console and provides better pty support.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

