Check for iTerm2 before sending out iTerm2-specific sequences.