When I use emacs under xterm, pressing <menu>  generates a message that "<print> is undefined"; pressing "C-1" inserts the number 1 as if I had pressed just "1".
Under a virtual console, the behaviour is also wrong, but different.

How can I make emacs work under xterm or under a virtual console as if it was under X?

Thank you.

--
Software is like sex: it is better when it is free.