Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法检查控制台窗口中给定位置的字符?例如,如果我想检查位置 (10, 12) 是否有星号 (*),我该怎么做?或者如果我使用move(10, 12);,如何检查当前光标位置的字符?我正在使用 PDCurses。
move(10, 12);
英寸函数系列应该这样做:
chtype inch(void); chtype winch(WINDOW *win); chtype mvinch(int y, int x); chtype mvwinch(WINDOW *win, int y, int x);