It is a good idea to give the term socket an explicit name. This is the telnet; argument in the invocations of term above. Unless you have the TERMSERVER environment variable set to telnet as appropriate, you invoke term clients with the -t switch, e.g., trsh -t telnet.