简体   繁体   English

Windows控制台像素

[英]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. 我已经看到了运行Windows控制台并在控制台窗口中绘制彩色像素以生成低级图形界面的旧程序。 [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? [1]如何在控制台上打印像素而不是文本,[2]如何根据控制台上的像素获得鼠标位置? [3] Also, how can one determine whether a specific key is pressed? [3]另外,如何确定是否按下了特定键?

Thanks. 谢谢。

It seems like that you want some function in "ncurses"(which is a library on linux) on windows system. 似乎您想要Windows系统上的“ ncurses”(这是Linux上的库)中的某些功能。 You can look at this: http://pdcurses.sourceforge.net/ 您可以看一下: http : //pdcurses.sourceforge.net/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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