delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,FB_WORD1_END_DOLLAR,SARE_MSGID_LONG40,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <26847257.post@talk.nabble.com> |
References: | <26769438 DOT post AT talk DOT nabble DOT com> <4B2557EC DOT 5070506 AT gmail DOT com> <26770209 DOT post AT talk DOT nabble DOT com> <4B257717 DOT 4070503 AT gmail DOT com> <hg45o8$rvf$1 AT ger DOT gmane DOT org> <26847257 DOT post AT talk DOT nabble DOT com> |
Date: | Fri, 18 Dec 2009 18:37:27 +0000 |
Message-ID: | <416096c60912181037g7b1125d3q86ac1b96df395588@mail.gmail.com> |
Subject: | Re: /de/conout (was: Looking for the 'stdout' of a Windows application) |
From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
2009/12/18 Marc Girod: >> the problem is that cleartool is written for Windows >> thus uses /dev/conout >> > I can see /dev/conout, but what can I do with it? It won't literally be using /dev/conout, because that's a Cygwin wrapper round a Windows concept. Cleartool is doing either of two things: - Use CreateFile("CONOUT$", ...) and then call WriteFile or WriteConsole to write stuff to it.=C2=A0CONOUT$ is a special Windows filename that provides access to the output side of the console that a process is attached to. That console may be an invisible one created by the 'run' tool or Cygwin DLL itself. No matter, the output certainly won't appear in xterm or emacs. - Call WriteConsole on its stdout handle. When run in xterm or emacs, the stdout handle will be a pipe (as part of Cygwin's pty implementation), and a WriteConsole call on that will fail. Again, no output. There's nothing you can do about this apart from running cleartool in an actual console or a console wrapper such as ttyfier (if it worked) or http://sourceforge.net/projects/console/. Andy -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |