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: List-Subscribe: List-Archive: List-Post: List-Help: , 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: 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> <774dr8ld62oteq1o8ljpplpuptlleritqe AT 4ax DOT com> <51B8F3E5 DOT 8070000 AT codespunk DOT com> <51BA3488 DOT 5050708 AT cygwin DOT 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 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. 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