I'm on OSX Lion

I running emacs inside of Terminal.app

I want command-x to result in M-x (and in general, command -> M)

I have tried the following solution and they're not what I want:

What I want, is only inside of Terminal.app (or only inside of emacs), to bind the command key to meta. How do I achieve this?

Edit
Report