'Application data bytes followed by an escape character are passed to a
call to C{write} before the terminal\'s handler method for the escape is
called.'

def test_escapeAfterApplicationData(self):

    self._applicationDataTest('ab\x1bD', [('write', ('ab',)), ('index',)])
    self._applicationDataTest('ab\x1b[4h', [('write', ('ab',)), ('setModes', ([4],))])
