> Apparently, it's not st's fault. After the misspelled word, xterm > receives ^[[24m^[[49m (no underline, reset background), while st > receives ^[[m^[[49m (reset all, reset background). I'm no expert in > this, so I hope someone with better knowledge reviews this.
So it means there is a problem in the terminfo definition. I think we only have to look in the terminfo definition of xterm and look for ^[[24m, and look if in the same capability we have a ^[[m, and think what is the most apropiate sequence in such case. Regards,