3 ms·
Nah, terminal colors via escape sequences work fine on Windows, even on the "traditional" cmd.exe. I use that all the time in cross-platform Python and Typescri
by flohofwoe 3y ago
Nah, terminal colors via escape sequences work fine on Windows, even on the "traditional" cmd.exe. I use that all the time in cross-platform Python and Typescript cmdline tools (cmd.exe is probably limited to 16 colors though, but that's just how it is).
- pjmlp 3y agoWindows isn't the only non POSIX one out there... And it was only one example, another one would be any kind of networking, as it isn't part of ISO C.
- flohofwoe 3y agoThere seems to be a standard socket API in the Cosmopolitan clib though: https://github.com/jart/cosmopolitan/tree/master/libc/sock https://github.com/jart/cosmopolitan/tree/master/libc/sock ..and that also seems to have WinSock support: https://github.com/jart/cosmopolitan/blob/master/libc/sock/connect-nt.c https://github.com/jart/cosmopolitan/blob/master/libc/sock/c... (also Windows is probably the only non-POSIX OS that matters - and APE is obviously only portable to systems it specifically supports, it can't support systems it doesn't even know about, no matter if it is a "POSIX system" or not).
- pjmlp 3y agoYeah, but that is going beyond ISO C, and diving int POSIX C LIB, which is the point I was making already.