I am looking for a solution to display the output of a specific bash command (such as ls -la
) in my web application. I need more than a simple black and white style display because the output includes characters that require a bash terminal to render correctly. For example, when running composer install
, the output looks like this:
- Installing bacon/bacon-qr-code (2.0.4): Downloading (100%)
However, in the terminal, it actually appears like this:
- Installing bacon/bacon-qr-code (2.0.4): Downloading (connecting...)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bDownloading (0%) \b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bDownloading (5%)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bDownloading (10%)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bDownloading (15%)\b\b\b\b\b\b\b\b\b\b\...
Any suggestions on libraries or methods would be greatly appreciated.