UBT: support for the Program Status Protocol (OSC 7501)

This is a totally optional feature request. A UBT build of an editor target takes minutes to hours and is usually left running in a background tab. UBT only reports where it is through printed text: `[N/M] Compile …` lines and the closing `Result: Succeeded` / `Result: Failed (…)`. A terminal or multiplexer can’t tell whether the build is still working, how far along it is, or whether it finished or failed unless it scrapes the output.

The Program Status Protocol (OSC 7501) is a generic terminal escape sequence for exactly this. A program reports `state=working` (with an optional `progress=0..100`), then `done` or `error`, plus a short base64 `msg`. Terminals that don’t support it must ignore unknown OSCs, so sending it is harmless. We would love to see UBT to send it. UBT already computes a whole-build percentage, so the data exists. It is just never reported outside the log text.

The existing `-Progress` switch (`Programs/UnrealBuildTool/GlobalOptions.cs:63`) does not cover this. It writes `[Content removed] and terminals do not interpret those lines.

[Attachment Removed]

I have made a Jira ticket for tracking this, and will try to implement it soon. Thanks for the suggestions.

[Attachment Removed]

I went ahead and implemented this already for 6.0, will post a link to the git commit when it is synced.

[Attachment Removed]

Hasn’t been synced to git yet but should be here in a few hours https://github.com/EpicGames/UnrealEngine/commit/36fc3835afff6e1bca2d0e8d1bf6878ef83397cf

[Attachment Removed]

So awesome, thanks Joe!

[Attachment Removed]

https://github.com/EpicGames/UnrealEngine/commit/36fc3835afff6e1bca2d0e8d1bf6878ef83397cf

[Attachment Removed]