Alex, Izzy, I'm not sure where you get the idea that xterm should generate those sequences. infocmp gives \EO5P for "function key 25", not for "control-function key 1". Infocmp does not and has never had a mechanism for specifying modifiers to special keys. It looks to me that MC is in the wrong.
I'll say it again, there is no mechanism for ncurses to handle special keys with modifiers; it's an xterm extension that various terminals emulate. It is thus impossible for xterm's infocmp database to "lie" about them.
Alex, Izzy, I'm not sure where you get the idea that xterm should generate those sequences. infocmp gives \EO5P for "function key 25", not for "control-function key 1". Infocmp does not and has never had a mechanism for specifying modifiers to special keys. It looks to me that MC is in the wrong.
I'll say it again, there is no mechanism for ncurses to handle special keys with modifiers; it's an xterm extension that various terminals emulate. It is thus impossible for xterm's infocmp database to "lie" about them.