Solved how to output like TOP command in the terminal ?
-
if it is a console application, i want to output some fixed information that only few values changes like top command per period . In the every period, output some thing,then next period,the terminal will clear and then output current information. just like refresh one line every second rather than out put them line by line.
Does Qt has any ways to solve this problem? -
@SpartaWHY117 No, not Qt. See for example http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html.
EDIT: for Windows, see http://stackoverflow.com/questions/16755142/how-to-make-win32-console-recognize-ansi-vt100-escape-sequences. Mac OSX should work out-of-the-box because it's a *nix.