/de/conout (was: Looking for the 'stdout' of a Windows application)

2009-12-18 Thread Marc Girod


defaria wrote:
> 
> 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?

I found one hit in the docs:
http://www.cygwin.com/1.7/cygwin-ug-net/using-specialnames.html

Thanks,
Marc
-- 
View this message in context: 
http://old.nabble.com/Looking-for-the-%27stdout%27-of-a-Windows-application-tp26769438p26847257.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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



Re: /de/conout (was: Looking for the 'stdout' of a Windows application)

2009-12-18 Thread Andy Koppe
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. CONOUT$ 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