gpt4 book ai didi

c++ - 检查 PDCurses/NCurses 中当前/给定位置的字符

转载 作者:太空宇宙 更新时间:2023-11-04 04:31:13 24 4
gpt4 key购买 nike

有没有办法检查控制台窗口中给定位置的字符?例如,如果我想检查位置 (10, 12) 是否有星号 (*),我该怎么做?或者,如果我使用 move(10, 12);,我该如何检查当前光标位置是哪个字符?我正在使用 PDCurses。

最佳答案

inch 系列函数应该这样做:

chtype inch(void);
chtype winch(WINDOW *win);
chtype mvinch(int y, int x);
chtype mvwinch(WINDOW *win, int y, int x);

关于c++ - 检查 PDCurses/NCurses 中当前/给定位置的字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36056871/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com