tmux escape codes (pdf) document of all the escape sequences handled by tmux (WIP).
tmux terminfo information on treating tmux as a first-class terminal type.