Clement Tsang

Results 212 comments of Clement Tsang

Just some random stuff I've noted while checking this quickly and getting myself back up to speed, this isn't representative of anything final: While it doesn't match activity monitor, it...

Running the example with `$Env:RUST_BACKTRACE = 1`: ```powershell PS C:\Users\Clement\Documents\GitHub\crossterm\examples> cargo r --example event-poll-read Finished dev [unoptimized + debuginfo] target(s) in 0.16s Running `C:\Users\Clement\Documents\GitHub\crossterm\target\debug\examples\event-poll-read.exe` Blocking poll() & non-blocking read() -...

Just for purposes of keeping track of stuff, https://github.com/crossterm-rs/crossterm-winapi/pull/20 seems to be a PR that would at least somewhat alleviate the problems in this issue.

For anyone who's still affected, upgrade your version of crossterm to 0.22.1 or later, it uses a newer version of crossterm-winapi which will instead just return an unknown result rather...

Feel free to close this if you want, btw - the issue I reported is technically fixed, though I know you wanted to handle the additional bitflag case in the...

Tested a bit more, seems like I initially messed up the comparison and the issue just seems to be on WSL1.

Was doing some more digging, the crash in the example is probably coming from the `.usage()` line.

Firstly, yeah, the issue on my side with the original bug report was on me, I handled the errors in a bit of a weird way (abusing the `?` syntax)...

Tried updating to 0.20 of crossterm - this issue is not fixed there either. Barring adding a panic handler, I'll probably just file this upstream.

Backtrace: ```bash thread '' panicked at 'Event flag 3 does not exist.', C:\Users\Clement\.cargo\registry\src\github.com-1ecc6299db9ec823\crossterm_winapi-0.6.2\src\structs\input.rs:200:18 0: backtrace::backtrace::trace_unsynchronized at C:\Users\Clement\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.59\src\backtrace\mod.rs:66 1: backtrace::backtrace::trace at C:\Users\Clement\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.59\src\backtrace\mod.rs:53 2: backtrace::capture::Backtrace::create at C:\Users\Clement\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.59\src\capture.rs:176 3: backtrace::capture::Backtrace::new at C:\Users\Clement\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.59\src\capture.rs:140 4:...