简体   繁体   中英

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.

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)或PDCurses (便携式)才是最佳选择。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM