Vergiss es gleich wieder.
Diese
API ist am sterben.
Es wird zukünftig nur noch die neuen Streammingfunktionen geben.
Vielleicht hättest du vorher mal die Dokumentation lesen sollen?
Sie strotzt hier nur noch so vor Warnhinweisen
,
ala
Zitat:
Important
This document describes console platform functionality that is no longer a part of our ecosystem roadmap. We do not recommend using this content in new products, but we will continue to support existing usages for the indefinite future. Our preferred modern solution focuses on virtual terminal sequences for maximum compatibility in cross-platform scenarios. You can find more information about this design decision in our classic console vs. virtual terminal document.
Zitat:
Tip
This
API does not have a virtual terminal equivalent. Its use may still be required for applications that are attempting to draw columns, grids, or fill the display to retrieve the window size. This window state is managed by the TTY/PTY/Pseudoconsole outside of the normal stream flow and is generally considered a user privilege not adjustable by the client application. Updates can be received on ReadConsoleInput.
uvm.
Abgesehn davon, dass in aktuellen Windows 11 nun das neue Terminal standardmäßig genutzt wird, und nicht mehr die "veraltete" CMD.exe.