This is subtly wrong.  TERM reports the type of type of terminal that is being emulated, not the emulator itself.