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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs