So to make the install progress nicer we are going to need a subprocess inside the Pty that runs dpkg and annotates the output as stdout and stderr.
Then we can
- buffer the log
- render status messages ourselves based on dpkg status fd
- if there is output on stderr print a backtrace
I would still prefer to actually have support in dpkg for sensible output format.