Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't request sync on macOS app #1664

Merged
merged 3 commits into from
Jan 25, 2023
Merged

don't request sync on macOS app #1664

merged 3 commits into from
Jan 25, 2023

Conversation

willmcgugan
Copy link
Collaborator

Fixes #1622

I think the terminal should ignore this escape sequence. It isn't so we will have to workaround it.

@@ -146,8 +146,9 @@ def on_terminal_resize(signum, stack) -> None:
self._enable_bracketed_paste()

def _request_terminal_sync_mode_support(self):
self.console.file.write("\033[?2026$p")
self.console.file.flush()
if self.console._environ.get("TERM_PROGRAM", "") != "Apple_Terminal":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment here saying why this code is here? It's the sort of thing someone else could look at 6 months from now and not understand.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, fair enough.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@willmcgugan willmcgugan merged commit 7bdc8f9 into main Jan 25, 2023
@willmcgugan willmcgugan deleted the lonely-p branch January 25, 2023 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

textual 0.10.0 renders a lonely "p" on the screen before entering the app
3 participants