don't assume that ESC[ never occur twice in succession