开发者

C print text lines and update them

I have a program in C that print a table. I want update the values of this table without reprint the entire table. I can update one line with 开发者_运维问答\r character, but how I can update more than one line?


I assume you are talking about outputing the table to stdout which is directed to a console (terminal). There is no standard way of manipulating the terminal in C because its presence it's not even required for standard output to work (it might be very well directed to a file, for example).

There are, however, multi-platform libraries such as ncurses that can operate on a terminal. You might consider using them.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜