Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发某种 mysql 监控工具,所以我需要像 top 命令这样的交互式输出。
有没有可以用于此的库?
您可能会从http://www.gnu.org/software/ncurses/中获得一些好处ncurses
ncurses
这是 IO-Top 源代码的链接。它是一种行为类似于 的软件top,但显示与 IO 相关的信息,而不是 CPU。
top
ncurses已经提到过。另一种bash方法是使用dialog. 见http://linux.die.net/man/1/dialog
bash
dialog