<div dir="auto">Actually, the primitive needs to be an enumerated value indicating one of:<div dir="auto"><br></div><div dir="auto">- no console (windows only)</div><div dir="auto">- console / terminal</div><div dir="auto">- pipe</div><div dir="auto">- file</div><div dir="auto"><br><div data-smartmail="gmail_signature" dir="auto">Cheers,<br>Alistair<br>(on phone)</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue., 1 May 2018, 07:56 Alistair Grant, <<a href="mailto:akgrant0710@gmail.com">akgrant0710@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Eliot & Vincent,<br>
<br>
On 27 April 2018 at 09:16, akgrant43 <<a href="mailto:notifications@github.com" target="_blank" rel="noreferrer">notifications@github.com</a>> wrote:<br>
><br>
><br>
><br>
> > But I don't get it. IIRC, it used to be the case that ReadConsole/WriteConsole worked in both.<br>
><br>
> I'd still like to be proved wrong...<br>
<br>
<br>
This thread has been quiet for a few days, so I guess my wishes aren't<br>
met and there isn't a way to have a program work in both Windows<br>
Consoles and cygwin terminals.<br>
<br>
One of the articles forwarded by Ben suggested the workaround is to have<br>
a .com version of the program, which does all the work if the command<br>
line arguments only require console i/o.  If a gui is required, it<br>
relaunches the .exe version which then opens the windows.  We could<br>
extend that to also check for cygwin and relaunch a cygwin exe.<br>
However I think that is effectively adding another platform to support,<br>
which is more effort than I want to put in.<br>
<br>
Assuming all of the above, I think we might as well (reluctantly) rip<br>
out the code that tests for cygwin terminals and just leave Vincent's<br>
primitives in.  This will at least allow the image to properly determine<br>
whether it can write to the console or if it should create files<br>
instead.<br>
<br>
What do you think?<br>
<br>
Thanks,<br>
Alistair<br>
</blockquote></div>