开发者

Dynamic output updation on a command line interface

开发者 https://www.devze.com 2022-12-09 14:49 出处:网络
I am eager to know how to p开发者_StackOverflow社区rint the output on a terminal screen similar to the one that of the \'top\' command.

I am eager to know how to p开发者_StackOverflow社区rint the output on a terminal screen similar to the one that of the 'top' command.

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 ....


I think you want to check out ncurses (or *curses, or whatever is appropriate for termio on your platform). ANSI escape sequences is also of interest :)


Ncurses (Unix-only I think) or PDCurses (portable) is the way to go.

0

精彩评论

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