有人可以告诉我 printw 到底是做什么的吗?我尝试寻找信息但找不到任何东西。
Google
5 秒揭示了一些不错的文档。
printw() class: Print formatted output similar to printf()
和
6.3.1. printw() and mvprintw
These two functions work much like printf(). mvprintw() can be used to move
the cursor to a position and then print. If you want to move the cursor first
and then print using printw() function, use move() first and then use printw()
though I see no point why one should avoid using mvprintw(), you have the
flexibility to manipulate.
来源 - NCURSES-编程-HOWTO
输入
man printw
(我猜你不是用 Windows 编程)。
在这里找到这个手册页 -> https://linux.die.net/man/3/printw