When sorting processes by the leftmost column in 'top', the escape sequence used to highlight the column is chopped off and breaks the terminal. Curtis Doty posted a fix[1] for it on the procps mailing list in november last year, but it has yet to appear in a release. [1] http://sourceforge.net/mailarchive/forum.php?thread_id=6042978&forum_id=12454 Reproducible: Always Steps to Reproduce: 1. 'top' 2. 'x' 3. '<' over and over until you hit the spot.
Created attachment 50103 [details, diff] Patch for procps-3.2.5 Curtis's patch redone for procps-3.2.5, should you decide to update the package.
thanks, added 3.2.5 to portage along with your attached patch !