I'm using Solaris 11.2 on a T5-2 SPARC server, and when I log in on the console (via ILOM, using PuTTY), the terminal type gets set to "sun", which is really annoying.
I've tried svccfg -s system/console-login setprop ttymon/terminal_type=xterm (followed by a reboot) and editing the /etc/profile line from TERM=sun to TERM=xterm
and still the TERM variable is "sun" when I log in. What else can I try?