OS X Terminal fn+delete doesn't work, prints ~ I recently did a fresh install of Mavericks, and ever since I haven't been able to use the fndelete keystroke in Terminal. On the command prompt, fndelete prints ~ and if I'm in vim, fndelete will capitalize existing characters. 

How can I reset this in Terminal so it functions normally? (Terminal is the only place I have this problem.)
I was able to fix this by going to Terminal->Preferences->Advanced and choosing xterm-256color as the setting for "Declare Terminal As"