Skip to content

Use crossterm::event::poll to avoid blank screen between choices. - #286

Merged
janhohenheim merged 1 commit into
YarnSpinnerTool:mainfrom
eswartz:fix-ratatui-usage
Aug 11, 2026
Merged

Use crossterm::event::poll to avoid blank screen between choices.#286
janhohenheim merged 1 commit into
YarnSpinnerTool:mainfrom
eswartz:fix-ratatui-usage

Conversation

@eswartz

@eswartz eswartz commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

I was trying out the sample and faced a blank screen and was confused. Nothing appeared but a blank screen until I pressed a key (multiple terminals).

It seems the crossterm::event::read() method is blocking. Its docs recommend using crossterm::event::poll(...) to avoid this. I used the recommended 100ms and CPU usage is quite low, as expected.

@janhohenheim
janhohenheim merged commit 10a052c into YarnSpinnerTool:main Aug 11, 2026
7 checks passed
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