开发者

get char on screen

I've looked through the NCurses function list, and I can't seem to find a function that returns the characters already printed on the screen. Is there an accessible value for the char stored in each character cell? If not, is there a similar function in the Windows terminal?

I want to use this to replace all the characters on the screen of a certain value 开发者_如何学编程(ex: all the a's) with a different character, or with new attributes.


The function inch() gets the character and returns it as a chtype. Use winch() to get a character from a window other than stdscr.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜