TERM is set to "syncterm", this is a global Program Setting, so the best thing to do is use the SyncTERM termcap or terminfo entry. Otherwise, you'll need to select a working TERM value from what's available on the remote system after logging in.