I'm troubleshooting some problems that I'm having in a terminal session connected to an AIX server. Basically, I'd like to be able to see what escape sequences are being sent in the terminal for a given key stroke.

I know there is a way to enable your terminal to display escape sequences, but I can't for the life of me remember how or find instructions now.