As discussed per email with timp, pbrown and bero.
This changes the xterm terminfo entries for F1-F4 and F12-F24 from the
VT100 to the VT220 esc sequences, making terminfo match with:
rxvt, Eterm and konsole.
And more important, once xterm and gnome-terminal are matched too.
Restore compatibility with apps with hardcodes VT220 esc-sequences like vim
The attached patch is a replacement for the old ncurses-5.0-fixxterm patch.
Created attachment 88 [details]
Fix for the described problem