home.social

#dos2ansi β€” Public Fediverse posts

Live and recent posts from across the Fediverse tagged #dos2ansi, aggregated by home.social.

  1. BTW the specific #win32-api-braindamage that hit me in #dos2ansi 1.0 was FlushFileBuffers(): learn.microsoft.com/en-us/wind

    Sure, my fault not to read the *whole* docs before using it and just assuming sane semantics πŸ™ˆ:

    > The function fails if _hFile_ is a handle to the console output. That is because the console output is not buffered.

    Okayyyy. I mean, not *having* to know what some "handle" used to do I/O is referring to exactly is kind of the whole point of any I/O abstraction, at least I thought so. Any API I've seen so far would just make it a no-op (and, of course, succeed) in such a case. 🀯

    #Windows #WinAPI #braindamage