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:

/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: htt

Re: ttyfier (was: Re: Looking for the 'stdout' of a Windows application)

2009-12-14 Thread Marc Girod
Andy Koppe wrote: > > Thanks, I had't heard of ttyfier. Interesting stuff! More > comprehensive than my 'conin' attempt because it tranlates output as > well as input. > I downloaded the sources and built it. My first try at using it wasn't very convincing: it didn't display anything and I had

Re: Looking for the 'stdout' of a Windows application

2009-12-14 Thread Eric Lilja
Marc Girod wrote: Hello, I run a proprietary application, IBM Rational cleartool.exe from cygwin. In some usage scenarios which I am now interested in, it prompts the user for an interactive decision. I do not get this prompt under cygwin (either X --emacs shell or xterm-- or the Cygwin terminal

Merits of ClearCase (was: Looking for the 'stdout' of a Windows application)

2009-12-14 Thread Marc Girod
Eric Blake wrote: > > In my opinion, the MVFS file system is a piece of trash. It has so many > corner cases that intentionally _break_ POSIX rules and thus get in the > way of normal assumptions about how file systems should work > Maybe. The question is: is it worth it? I believe it is. Eri

Re: Looking for the 'stdout' of a Windows application

2009-12-14 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Andrew DeFaria on 12/13/2009 6:52 PM: > MVFS is a good idea if used correctly IMHO. In my opinion, the MVFS file system is a piece of trash. It has so many corner cases that intentionally _break_ POSIX rules and thus get in the way of no

Re: ttyfier (was: Re: Looking for the 'stdout' of a Windows application)

2009-12-14 Thread Dave Korn
Andy Koppe wrote: > But the DLL injection makes me wonder: is it possible to override > existing functions such as WriteConsole or ReadConsole? You'd need to inject a DLL that hotpatched the IAT live in memory, which is certainly possible, but a bit hacky. (I don't know whether the LD_PRELOAD

ttyfier (was: Re: Looking for the 'stdout' of a Windows application)

2009-12-13 Thread Andy Koppe
2009/12/13 René Berber: > And there's the old 'ttyfier' which almost worked: > > http://sources.redhat.com/ml/cygwin/2006-03/msg00164.html > > I say almost because it assumes a fixed terminal size and it fails if > the output exceeds that size, and there where other problems but the OP > might find

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Andrew DeFaria
On 12/13/2009 04:21 PM, Dave Korn wrote: Ghastly top-heavy over-engineered UML-laden bloatware that comes with its own non-standard filing system does tend to make me do that ;-) Clearcase does not use UML - nor UML laden bloatware AFAICT. Perhaps you're thinking of Rational Rose. The "non-stand

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Ken Brown
On 12/13/2009 6:38 PM, Larry Hall (Cygwin) wrote: On 12/13/2009 06:35 PM, Marc Girod wrote: OK. It does. Without CYGWIN=tty, I get the output to the console. What shall I miss without it? Perhaps correct interaction with Emacs? I can't remember which variant of Emacs offered with Cygwin won't

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Larry Hall (Cygwin)
On 12/13/2009 06:35 PM, Marc Girod wrote: OK. It does. Without CYGWIN=tty, I get the output to the console. What shall I miss without it? Perhaps correct interaction with Emacs? I can't remember which variant of Emacs offered with Cygwin won't handle everything correctly without PTYs. You can

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Marc Girod
Dave Korn-6 wrote: > > Ghastly top-heavy over-engineered UML-laden bloatware that comes with > its > own non-standard filing system does tend to make me do that ;-) > There's a gem well hidden inside. Dave Korn-6 wrote: > > That'll teach you to choose the wrong side in the One True Editor

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Dave Korn
Marc Girod wrote: > > Dave Korn-6 wrote: >> *shudder* >> > Er? Ghastly top-heavy over-engineered UML-laden bloatware that comes with its own non-standard filing system does tend to make me do that ;-) >> It's almost certainly not hung: it's printed the prompt, which has gotten >> lost somew

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Marc Girod
Andy Koppe wrote: > > Did you restart your Cygwin session? I think that setting only gets > read once at the start of the first Cygwin process. > No: I only set the environment varaible in the console shell. I am now updating cygwin... I didn't do that for a few weeks. Andy Koppe wrote: > > O

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Andy Koppe
2009/12/13 Marc Girod: >> Surprised it doesn't work in the Cygwin console, unless you've got >> CYGWIN=tty set? >> > I have. Dave Korn told me to take it away. > Anyway, no result one way or the other. Did you restart your Cygwin session? I think that setting only gets read once at the start of th

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Marc Girod
Andy Koppe wrote: > > 2009/12/13 Marc Girod: > Surprised it doesn't work in the Cygwin console, unless you've got > CYGWIN=tty set? > I have. Dave Korn told me to take it away. Anyway, no result one way or the other. Andy Koppe wrote: > > The problem likely is that cleartool.exe expects to >

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Marc Girod
Dave Korn-6 wrote: > > *shudder* > Er? Dave Korn-6 wrote: > > It's almost certainly not hung: it's printed the prompt, which has > gotten > lost somewhere, and it's now waiting for your input. Try hitting enter. > This is what I meant. I thought I had tried hitting Enter... It works. Un

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Gary Johnson
On 2009-12-13, Andy Koppe wrote: > 2009/12/13 Marc Girod: > > I run a proprietary application, IBM Rational cleartool.exe from cygwin. > > In some usage scenarios which I am now interested in, it prompts the user > > for an interactive decision. > > I do not get this prompt under cygwin (either X -

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Andy Koppe
2009/12/13 Dave Korn: >> I'm currently working on a little utility for this sort of situation. >> It's called 'conin' > >  Conin The Barbarian? Yeah, I guess with all the goodness of Cygwin available, using native console programs is rather a savage thing to do. ;) > Heh.  This looks pretty inte

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread René Berber
Andy Koppe wrote: [snip] > I'm currently working on a little utility for this sort of situation. > It's called 'conin' and translates Cygwin pty input to Windows console > input. Source is available at > http://mintty.googlecode.com/svn/utils/conin.c and a Cygwin 1.7 > executable can be found at >

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Gary Johnson
On 2009-12-13, Marc Girod wrote: > Hello, > > I run a proprietary application, IBM Rational cleartool.exe from cygwin. > In some usage scenarios which I am now interested in, it prompts the user > for an interactive decision. > I do not get this prompt under cygwin (either X --emacs shell or xterm

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Dave Korn
Andy Koppe wrote: > I'm currently working on a little utility for this sort of situation. > It's called 'conin' Conin The Barbarian? Heh. This looks pretty interesting. It would be neat if there was a low-cost way of detecting native windows executables that need this and making it happen a

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Andy Koppe
2009/12/13 Marc Girod: > I run a proprietary application, IBM Rational cleartool.exe from cygwin. > In some usage scenarios which I am now interested in, it prompts the user > for an interactive decision. > I do not get this prompt under cygwin (either X --emacs shell or xterm-- or > the Cygwin ter

Re: Looking for the 'stdout' of a Windows application

2009-12-13 Thread Dave Korn
Marc Girod wrote: > I run a proprietary application, IBM Rational cleartool.exe from cygwin. *shudder* > In some usage scenarios which I am now interested in, it prompts the user > for an interactive decision. > I do not get this prompt under cygwin (either X --emacs shell or xterm-- or > the

Looking for the 'stdout' of a Windows application

2009-12-13 Thread Marc Girod
Hello, I run a proprietary application, IBM Rational cleartool.exe from cygwin. In some usage scenarios which I am now interested in, it prompts the user for an interactive decision. I do not get this prompt under cygwin (either X --emacs shell or xterm-- or the Cygwin terminal. My process just h