[英]Dynamic output updation on a command line interface
I am eager to know how to print the output on a terminal screen similar to the one that of the 'top' command. 我很想知道如何在终端屏幕上打印输出,类似于'top'命令的输出。
What I mean to say is .. dynamic updation of the existing output on terminal window. 我的意思是说..终端窗口上现有输出的动态更新。
A small c program or reference to appropriate resources is expected .... 预计会有一个小型的c程序或对适当资源的引用....
I think you want to check out ncurses (or *curses, or whatever is appropriate for termio on your platform). 我想你想查看ncurses (或* curses,或适用于你平台上的termio的任何内容)。 ANSI escape sequences is also of interest :)
ANSI转义序列也很有意思:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.