-
Notifications
You must be signed in to change notification settings - Fork 1
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
Disabling focus does not really work #1
Comments
If you want to test locally, the PR jtdaugherty/vty-crossplatform#2 has the code. |
jtdaugherty/vty-crossplatform#2 is now merged. |
@ShrykeWindgrace I also did some cleanup:
|
I'll test the changes shortly, thank you! |
Strange behavior I spotted on the
vty-mode-demo
Initially, there are no focus events at all. When I toggle them on, I start receiving them as VT sequences, which is kind of expected. However, when I then toggle them off, they still arrive, but as Windows Focus Event Records (
FocusEventRecordC
)! Further toggles do not change the situation, focus event keep coming.Possible approaches:
\ESC[?1004l
sequence can't disable all Focus Events for real - and why\ESC[?1004h
enables too much. Possible Windows Terminal bug?It seems that the first option is the easiest in terms of efforts/gains ratio.
I am reluctant to implement it without a second opinion, because it could also be an issue with my terminal config somewhere.
The text was updated successfully, but these errors were encountered: