Ghostty author proposes OSC 7501 a terminal protocol, already implemented in libghostty and Rex
Mitchell Hashimoto proposes OSC 7501, enabling programs to actively report idle, working, waiting, completed, or error states through the terminal connection; multiple proofs of concept have already been completed.