New implementation of pseudo console support (experimental)

Thomas Wolff towo@towo.net
Tue May 26 09:32:35 GMT 2020


Am 26.05.2020 um 11:21 schrieb Takashi Yano via Cygwin-developers:
> On Tue, 26 May 2020 09:14:39 +0200
> Thomas Wolff wrote:
>> Am 26.05.2020 um 03:00 schrieb Takashi Yano via Cygwin-developers:
>>> If the code below is compiled with cygwin gcc, it does not work.
>>>
>>> #include <windows.h>
>>> int main()
>>> {
>>>     WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), "AAA\r\n", 5, NULL, 0);
>>>     return 0;
>>> }
>> This works for me.
> That's strange. WriteFile() works but WriteConsole() should
> not work. I meant cygwin native gcc by "gcc", but not
> cygwin mingw gcc "x86_64-w64-mingw32-gcc".
Oh well, I seem to have confused the test setup. So it works in cygwin 
console but not in mintty with your new patch.
Works in mintty with 3.1.4. Also works with your patch if compiled with 
mingw-gcc, as expected.
With cygwin 3.0.7 in mintty, neither gcc nor mingw-compiled versions 
work for me.
Thomas


More information about the Cygwin-developers mailing list