Hello Community,
i am wondering how i can access the console buffer on windows?
Like reading and writing individual pixels in the console.
Also getting keystates and preventing them from directly be printed in the console as characters.
Is there an easy way to do that?
Basically dissable the default behavior of the console where it is more like textbased and use it as sort of like a canvas where i can draw individual pixels and check for keybord inputs.
Would be nice if someone could give me some help and/or code examples.
Thanks a lot :)
Msdn answers
https://docs.microsoft.com/en-us/windows/console/setconsolescreenbuffersize (https://docs.microsoft.com/en-us/windows/console/setconsolescreenbuffersize)
https://docs.microsoft.com/en-us/windows/console/classic-vs-vt (https://docs.microsoft.com/en-us/windows/console/classic-vs-vt)
the more important
https://docs.microsoft.com/en-us/windows/console/console-functions (https://docs.microsoft.com/en-us/windows/console/console-functions)
The functionsare in consoleapi2 and 3.h.The .h are in the last sdk.
needed material here.http://luce.yves.pagesperso-orange.fr/header.htm (http://luce.yves.pagesperso-orange.fr/header.htm)