delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/13/23:08:44

X-Recipient: archive-cygwin AT delorie DOT 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 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
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 AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT 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 AT cygwin DOT com
Subject: Re: pty issue causes 'screen' to hang when run from mintty as detached
References: <51B63D88 DOT 6000508 AT codespunk DOT com> <phscr81sr0kr02qenquh1s0na4n062u3so AT 4ax DOT com> <774dr8ld62oteq1o8ljpplpuptlleritqe AT 4ax DOT com> <51B8F3E5 DOT 8070000 AT codespunk DOT com> <CA+VB3NSC-Oxb0_v+PDpA3v_uyw+7xSWq2HX0nwYHj7Ub3Dty+A AT mail DOT gmail DOT com> <51BA3488 DOT 5050708 AT cygwin DOT com> <00f701ce688f$50c14ae0$f243e0a0$@malth.us>
In-reply-to: <00f701ce688f$50c14ae0$f243e0a0$@malth.us>

On 6/13/2013 7:39 PM, gmt AT malth DOT 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 AT codespunk DOT 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

- Raw text -


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