After emerging the latest ncurses (sys-libs/ncurses-5.4), ssh access to my system via gnome-terminal on another gentoo box (running gnome 2.4.x) stopped displaying programs using ncurses properly. The problem that I've found is in the /etc/terminfo/x/xterm file - if it is not updated via etc-update, this problem does not occur. Reproducible: Always Steps to Reproduce: 1. emerge sys-libs/ncurses-5.4 2. etc-update (replace /etc/terminfo/x/xterm with the newer version) 3. ssh in from another system using xterm. (I'm using another gentoo system running gnome and gnome-terminal) 4. open nano on a file with 100 lines or so. It looks fine, till you scroll down a screen or two. Then the text starts to overlay itself upon the other text. Scrolling up makes it worse. Actual Results: upon scrolling in nano, the text overwrites itself in the display, and makes it impossible to read. Scrolling up adds more garbage on top, and makes nano unusable. Expected Results: Displayed text properly upon scrolling.
I can confirm this with konsole also. The symptom I am seeing is upon login, when I try to run top, the terminal returns 'xterm':is not a terminal type. As a workaround I changed my TERM to 'linux' in my ~/.bashrc
*** This bug has been marked as a duplicate of 43432 ***