The behavior you're seeing is because of the \E[K (clear-to-end-of-line) which is being sent at the end of the line. Attaching a readable form of the part of the script we're talking about.
** Attachment added: "readable form of script-detail" http://launchpadlibrarian.net/37683119/foo.map -- xterm word wrap bug https://bugs.launchpad.net/bugs/505526 You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xterm in ubuntu. _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp