How to use ALT commands in a terminal on OS X?

Solution 1:

Both iTerm and Terminal have preferences for using option as a meta key.

You can also use DefaultKeyBinding.dict to add support for keybindings like M-f and M-u to other text views.