David Gressett
DGres****@amli-*****
Tue Jul 31 12:08:20 JST 2018
I have created an update for wincon.h, which I have posted on Slack. I tested it with some code samples on Microsoft's wincon.h documentation page for "Console Virtual Terminal Sequences." The samples demonstrate new features of the Windows 10 console. There are three samples. The first two compile with the new wincon.h in place. (They don't explicitly include it.) The third one needed some hacking that was not related to wincon.h It was needed because of some current Microsoft C runtime features which don’t exist in MinGW. One of the nonexistent features was _getwch(), which is wide-character equivalent to _getch(), which MinGW does have. _getwch() is documented as being defined in both <conio.h> and <wchar.h> Thefailing example used <wchar.h> , so I fixed the problem by adding #include <conio.h) and #define _getwch _getch The other problem was an urecognizable main routine declaration. int __cdecl wmain(int argc, WCHAR* argv[]) did not work; it was not recognized as the main routine and caused a link-time error. The obvious replacement int main(int argc, char * argv[]) did work.