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?