That's a tough one. I'm not aware of any avenue for that.
Although ATE supports that same ESC sequence protocol (for compatibility sake), in some cases it also provides an alternate protocol which can return more detailed error codes. One example I can think of in particular is the "shell execute" (
MX_SHELLEX ) command, where the application might be able to do something useful with the failure code.
I'm not sure if that's enough of a reason to switch from ZTERM to ATE, but it is an example of one of the factors that motivated us to develop a separate emulator (i.e. that we could control it and thereby enhance it at will, as opposed to just distribute it, which is where we're at with ZTERM).