You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update crossterm dependency to use use-dev-tty feature - #14
I can't merge this as-is, though. filedescriptor and use-dev-tty aren't equivalent: in crossterm 0.29 the filedescriptor feature is a no-op for term39 (no code is gated on it), while use-dev-tty switches the Unix event source from mio to poll/select. That backend has an open bug (crossterm-rs/crossterm#839) where event::poll(Duration::ZERO) never returns buffered events, and term39's event loop relies on a zero-timeout poll to drain events each frame. With this change it processes one event per frame instead of a batch, which I measured as 20 keystrokes taking 20 frames instead of 1. Fast typing and mouse drags would lag noticeably.
Since the goal is just forward compatibility with #1101, the safe change is to drop filedescriptor from the feature list and leave the rest alone. If you'd like to update the PR to that, I'll happily merge it. Otherwise I can do it myself, no problem.
Ah I see, I saw use-dev-tty had a dependency on filedescriptor in crossterm, so thought I'd try enabling that. But looks like that's completely unnecessary. I've opened #15 and closed this PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See crossterm-rs/crossterm#1101