0

I'm trying to build a tool in PHP that will monitor a service and output the status to a terminal. I'd like to print a lot of information that will take up most the the terminal, so when it refreshes the information, it should replace the previous content rather than adding to it.

How can I control the output from a PHP script like that? Is Ncurses the only way?

4

1 回答 1

0

最简单的实现方法就是清屏——当然这不是最漂亮的解决方案。

正如您刚才所说, ncurses是唯一的方法 - 它肯定是满足您要求的最佳方法。

于 2013-10-11T14:36:47.147 回答