lists.zerezo.com



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

***BOGO*** Re: [Mingw-users] ANSI escape sequences problem



Bengt Werstén wrote:

> Hmm, does I not matter at all that I run both programs from the same bash shell in cygwin?

The code that does the translation of the escape sequences into the
appropriate Win32 console API calls lives in the Cygwin DLL, thus it's
only available to an app that does I/O through Cygwin.  When you run the
MinGW program (or any native Win32 app) it has direct control of the
console -- the Cygwin bash shell is simply the parent process, it
doesn't have any special control.  It does not own the console while the
child is executing, there is no way for it to intercede on the actions
of an independent child process.

Note that your testcase does work if you use Cygwin's rxvt, because in
that case there is no Win32 console involved at all and no need for any
translation; rxvt is doing the interpretation of all escape sequences
regardless of source.

Brian

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users