For the new Whonix experimental templates from the Qubes repo:
In Dom0, when running “qvm-” commands  specifically upon Whonix VMs, such as “qvm-start”, “qvm-run”, etc, it outputs 2 lines of the following error, like this…
setterm: $TERM is not defined. setterm: $TERM is not defined.
For example, if I run the following in the Dom0 terminal:
qvm-run --pass-io whonix-workstation 'date'
setterm: $TERM is not defined. setterm: $TERM is not defined. Sat Dec 25 12:00:00 UTC 2014
This error does not happen with other Fedora-based (non-Whonix) VMs in Qubes.
This error does not happen within the Whonix VM terminals themselves, just Dom0, when running “qvm-” commands upon the Whonix VMs.
I’m writing a toolkit for Qubes + Whonix and this error gets in the way of cleanly parsing and processing the output of commands issued to the Whonix VMs.
Checked $TERM variable inside the Whonix VM terminals, I echo $TERM:
Cross posted this to the qubes-users mailing list: https://groups.google.com/d/topic/qubes-users/ToWHLRXBy5c