in reply to Setting TERMINAL_EMULATOR to vt100
You could export a variable in .bashrc to get it to set
in the %ENV. Then you could reset it later. This will affect
all new terminals being opened.
system(" echo export TERMINAL_EMULATOR=vt100 >>.bashrc")
But you should reset it after your program is done.