Your problem with xterm sounds like something that can be fixed,
with a little investigation. The usual mismatches with Linux vs Solaris
are for the backspace/delete keys, but this isn't that one. More
likely it's a mismatch for the terminal description (what TERM is set to).
Knowing that would be helpful.
Well, you did say you launch xterm from a script, which is on the client machine.
It's reasonably likely that the problem can be fixed within the script.
...except for the odd comment about the unexpected escape characterMaybe, but none of the boxes I SSH to like that have any term problems to be fixed.
...except for the odd comment about the unexpected escape character
echoing when you press up-arrow? That's puzzling, unless you are using
similar shells, with only one honoring cursor keys for editing, e.g,. csh vs
tcsh.