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

wezterm.terminfo: add terminator to Sync capability #4578

Merged
merged 1 commit into from
Dec 2, 2023

Conversation

gpanders
Copy link
Contributor

I'm not sure if this is strictly necessary, but according to the
terminfo specification 1, a conditional string should be terminated
with %;.

Quoting the relevant section:

%? expr %t thenpart %e elsepart %;
     This forms an if-then-else.  The %e elsepart is optional.
     Usually the %? expr part pushes a value onto the stack, and
     %t pops it from the stack, testing if it is nonzero (true).
     If it is zero (false), control passes to the %e (else) part.

I'm not sure if this is strictly necessary, but according to the
terminfo specification [1], a conditional string should be terminated
with `%;`.

[1]: https://man7.org/linux/man-pages/man5/terminfo.5.html
@wez wez merged commit 960538c into wez:main Dec 2, 2023
14 checks passed
@wez
Copy link
Owner

wez commented Dec 2, 2023

Seems reasonable, thanks!

wez added a commit that referenced this pull request Dec 2, 2023
@gpanders gpanders deleted the Sync-terminfo branch December 2, 2023 17:15
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.

2 participants