“printw”究竟做了什么? (Ncurses的)

时间:2014-07-03 14:20:45

标签: ncurses

有人可以告诉我printw究竟做了什么?我试着寻找信息但却找不到任何东西。

1 个答案:

答案 0 :(得分:2)

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-Programming-HOWTO