简体   繁体   中英

Windows Console Pixels

I have seen old programs that run the Windows console and draw colored pixels in the console window to produce a low-level graphic interface. [1] How is it possible to print pixels to the console instead of text, and [2] how is it possible to get the mouse position in terms of what pixel on the console? [3] Also, how can one determine whether a specific key is pressed?

Thanks.

It seems like that you want some function in "ncurses"(which is a library on linux) on windows system. You can look at this: http://pdcurses.sourceforge.net/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM